Difference between revisions of "Freeside:2.1:Documentation:Administration:RT Workflow"

From Freeside
Jump to: navigation, search
(New page: This is a set of improvements to RT to support workflow management using multiple ticket queues. == Summary == RT Scrip Condition and Action can now define "options" to be set in the Scr...)
 
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
== Setup ==
 
== Setup ==
  
To use the CustomFieldChange condition, issue this SQL statement:
+
The freeside-upgrade script will insert a ScripCondition record named 'On Custom Field Change'.  Create a scrip with that condition, select the custom field, and enter the target value.  The scrip will trigger when the ticket's custom field value becomes equal to that value.  Currently this condition works in per-queue scrips, but not global scrips.
 
 
INSERT INTO scripconditions (name, description, execmodule, applicabletranstypes, creator, created, lastupdatedby, lastupdated) VALUES ('On Custom Field Change', 'When a custom field is changed to some value', 'CustomFieldChange', 'Any', 1, CURRENT_DATE, 1, CURRENT_DATE);
 
 
 
Then create a scrip with the 'On Custom Field Change' condition, select the custom field, and enter the target value.  The scrip will trigger when the ticket's custom field value becomes equal to that value.
 
  
 
The CreateTickets action already has a record in ScripActions.  When "Create Tickets" is selected as a scrip action, the "In queue" option will appear.  Select the queue where you want the new ticket to be created.  You will also need to select the template for the new ticket.
 
The CreateTickets action already has a record in ScripActions.  When "Create Tickets" is selected as a scrip action, the "In queue" option will appear.  Select the queue where you want the new ticket to be created.  You will also need to select the template for the new ticket.

Latest revision as of 12:22, 9 December 2010

This is a set of improvements to RT to support workflow management using multiple ticket queues.

Summary

RT Scrip Condition and Action can now define "options" to be set in the Scrip configuration (not the ScripCondition/ScripAction). The names and values of these options are stored in the (normally unused) ConditionRules and ActionRules fields on consecutive lines, separated by newlines.

When editing a scrip, selecting a Condition or Action will cause the form to refresh with additional fields for the options. Options are implemented for two specific cases: the CreateTickets action and the new CustomFieldChange condition.

Setup

The freeside-upgrade script will insert a ScripCondition record named 'On Custom Field Change'. Create a scrip with that condition, select the custom field, and enter the target value. The scrip will trigger when the ticket's custom field value becomes equal to that value. Currently this condition works in per-queue scrips, but not global scrips.

The CreateTickets action already has a record in ScripActions. When "Create Tickets" is selected as a scrip action, the "In queue" option will appear. Select the queue where you want the new ticket to be created. You will also need to select the template for the new ticket.

To create a child ticket that inherits the customer, requestors, and Cc contacts of its parent, use the following template and fill in your ticket subject and content.

===Create-Ticket: ticket1
Parents: { $Tickets{'TOP'}->Id }
Requestor: { $Tickets{'TOP'}->RequestorAddresses }
Cc: { $Tickets{'TOP'}->CcAddresses }
Subject: (enter ticket subject here)
Content:
(your ticket text here)
ENDOFCONTENT