Use Task Trigger to automatically trigger any 'Action' on a task using a script file or a custom function. You can define rules and apply predefined actions on tasks that match those rules. Triggers come in handy when performing actions in other modules or in third-party applications.
To create a new custom trigger for tasks,
Click New Action.
Enter a name and description for the action and select when the action must be executed.
Set Criteria under which the action must be executed on tasks. You can add multiple criteria by clicking on the + icon. Switch between AND and OR operators between the criteria as per your requirement.
Under Perform Action, choose whether you want to execute a script, or a custom function and configure the same using the following pointers:
Script: Specify the file name containing the script. For example, addcomments.txt.
Custom Function: By executing custom functions, you can manipulate data in SupportCenter Plus and other external applications. Choose the required custom function or add a new one.
Supported Return Operations: UPDATE_TASK , ADD_COMMENTS & ADD_Time Entry
We can also pass arguments for the custom scripts. The following table shows the possible arguments for scripts in Task Custom Trigger.
Possible arguments for scripts in Task Custom Trigger
Denotes the title of the task
Provides the unique id generated for the task
Denotes the level of priority of the task
Denotes the status of the task
Denotes the type of the task
Denotes the parent of the task
Provides task completion in percentage
Provides estimated effort in Days, Hours and Minutes
Provides the additional cost of the task
Provides the details on user/support rep who created this task.
Provides the time at which the task is created
Provides the scheduled start time of the task
Provides the scheduled end time of the task
Provides the actual start time of the task
Provides the actual end time of the task
Denotes if the task is overdue
Denotes the owner assigned for the task
Denotes the group under which the task is assigned ( Not Applicable for General, Project, and Milestone tasks)
Denotes the account under which the task falls
Denotes the owner marked for the task
Denotes the group under which the task is marked( Not Applicable for General, Project, and Milestone tasks)
Denotes of the template used for the task