Rule top open then close a ticket with a specific category and comment
Hello,
I want to create a rule to open a ticket and then close it changing the category to "SELF HELP TOOL" the status to "Closed", Solution to "Used Self Help Tool" and the Resolution to "Used the self help tool to fix my problem"
Can anybody could share some light on how can that be accomplished?
I have tried by modifying one of the already implemented rules, but I'm not to good in SQL.
Thanks.
I'm using KBOX 1000.
I want to create a rule to open a ticket and then close it changing the category to "SELF HELP TOOL" the status to "Closed", Solution to "Used Self Help Tool" and the Resolution to "Used the self help tool to fix my problem"
Can anybody could share some light on how can that be accomplished?
I have tried by modifying one of the already implemented rules, but I'm not to good in SQL.
Thanks.
I'm using KBOX 1000.
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
GillySpy
14 years ago
You can open and close a ticket in one interaction -- by email. So if your CGI can send email then you can do this without a rule.
Assuming your CGI can send an email then:
1. determine what address the email would come from
2. make a user with that email address in your kbox
3. make that user an elgible owner in a helpdesk queue
4. From your CGI, send an email to the kbox helpdesk queue's email adress with the details of the KB interaction. Specifically you want this text at the top of the email:
Assuming your CGI can send an email then:
1. determine what address the email would come from
2. make a user with that email address in your kbox
3. make that user an elgible owner in a helpdesk queue
4. From your CGI, send an email to the kbox helpdesk queue's email adress with the details of the KB interaction. Specifically you want this text at the top of the email:
@status=closed
@owner=cgiemail@yourcompany.com
Here is where the body of the email begins
Posted by:
chris811
14 years ago
Posted by:
chris811
14 years ago
So far, we have created a function to create the ticket, then I'm thinking on creating a rule to close it, but should be another easier way to do this, since is taking some time from the screen once we run the self help tool:
function createTicket()
{
getScriptName $1
FILENAME=$?
USERNAME=$2
echo "<body>"
echo "<form id='ticket_form' name='ticket_form' method='post' action='http://169.198.72.191/userui/ticket.php' target='_blank'>"
echo " <input type='hidden' name='attr[ID]' id='attr[ID]' value='0' />"
echo " <input type='hidden' name='fields[queue_id]' value='2' />"
echo " <input type='hidden' name='fields[cloned_id]' value=' />"
echo " <input type='text' name='fields[title]' id='fields[title]' value='TICKET CREATED BY SELF HELP TOOLS' />"
echo " <input type='text' name='fields[custom_field_value1]' id='fields[custom_field_value1]' value='$USERNAME' />"
echo " <input type='text' name='fields[custom_field_value3]' id='fields[custom_field_value3]' value=' />"
echo " <select name='fields[custom_field_value4][]' id='fields[custom_field_value4][]' >"
echo " <option value='Yes' >Yes</option>"
echo " <option value='No' selected>No</option>"
echo " </select>"
echo " <textarea id='fields[comment]' name='fields[comment]'>USED $FILENAME</textarea>"
echo " <input type='file' name='INVENTORY_FILE[]' />"
echo " <input name='save' type='submit' value='Save' />"
echo "</form>"
echo "<script type='text/javascript'>"
echo " var myform = document.ticket_form;"
echo " myform.submit();"
echo "</script>"
echo "</body>"
}
If anybody could help with the SQL rule to open and close it and the parameters that I put on the first post that will be greatly appreciated.
function createTicket()
{
getScriptName $1
FILENAME=$?
USERNAME=$2
echo "<body>"
echo "<form id='ticket_form' name='ticket_form' method='post' action='http://169.198.72.191/userui/ticket.php' target='_blank'>"
echo " <input type='hidden' name='attr[ID]' id='attr[ID]' value='0' />"
echo " <input type='hidden' name='fields[queue_id]' value='2' />"
echo " <input type='hidden' name='fields[cloned_id]' value=' />"
echo " <input type='text' name='fields[title]' id='fields[title]' value='TICKET CREATED BY SELF HELP TOOLS' />"
echo " <input type='text' name='fields[custom_field_value1]' id='fields[custom_field_value1]' value='$USERNAME' />"
echo " <input type='text' name='fields[custom_field_value3]' id='fields[custom_field_value3]' value=' />"
echo " <select name='fields[custom_field_value4][]' id='fields[custom_field_value4][]' >"
echo " <option value='Yes' >Yes</option>"
echo " <option value='No' selected>No</option>"
echo " </select>"
echo " <textarea id='fields[comment]' name='fields[comment]'>USED $FILENAME</textarea>"
echo " <input type='file' name='INVENTORY_FILE[]' />"
echo " <input name='save' type='submit' value='Save' />"
echo "</form>"
echo "<script type='text/javascript'>"
echo " var myform = document.ticket_form;"
echo " myform.submit();"
echo "</script>"
echo "</body>"
}
If anybody could help with the SQL rule to open and close it and the parameters that I put on the first post that will be greatly appreciated.
Posted by:
chris811
14 years ago
Posted by:
GillySpy
14 years ago
You cannot submit a ticket to the kbox by posting to ticket.php
If you want to use a form that is fine, but your form will have to email the ticket and construct an email with email tokens to set the fields for the ticket.
What is the reason that your form cannot email the kbox? If port 25 is open to the kbox between them then you can use the kbox's SMTP server and deliver the mail to the queue (e.g. helpdesk@kbox.yourcompany.com)
If you want to use a form that is fine, but your form will have to email the ticket and construct an email with email tokens to set the fields for the ticket.
What is the reason that your form cannot email the kbox? If port 25 is open to the kbox between them then you can use the kbox's SMTP server and deliver the mail to the queue (e.g. helpdesk@kbox.yourcompany.com)
Posted by:
chris811
14 years ago
Thank you very much, the idea of the CGI sending the email did the trick, the only thing I had to do was to set up the account with the email [email=apache@blabla.com]apache@blabla.com[/email] and that did it, after that I created a rule to close the ticket and recategorize it as needed.
Again thanks for all your help.
Again thanks for all your help.
Posted by:
airwolf
14 years ago
Posted by:
chris811
14 years ago
Posted by:
airwolf
14 years ago
Posted by:
chris811
14 years ago
Posted by:
chris811
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.