Problem Custom Trigger

Problem custom trigger allows you to automate actions when an incoming problem matches specific conditions. You can configure email/SMS notifications, custom functions, and custom scripts as custom actions. Triggers can also be used to execute actions on other modules. Custom triggers are categorized and executed through trigger groups.

 

Role Required: SDAdmin

 

To Create a New Trigger Group

  1. Go to Admin > Automation > Custom Triggers > Problem.

  2. Click Trigger Group.

  3. Provide a Name and Description for the group.

  4. Click Save or Save and Add New.

 

 

To Create a New Custom Trigger

  1. Hover over the required trigger group and click Add Trigger.

  2. Trigger Name: Provide a name for the custom trigger. This is a mandatory field

  3. Description: Provide a short description about the custom trigger.

  4. Execute on actions: Choose if you want to execute the trigger when the problem is created, edited, or deleted permanently. By default, created is selected.

Deleted permanently cannot be combined with any other option.
  1. Execute during: Choose when to execute the trigger: Anytime, Within Operational Hours, or Outside Operational Hours.

  2. Cascade Execution: Choose if you want to modify the execution order of trigger. You can choose to execute the next rule, skip all remaining triggers in the current group or even across all groups.

  3. Execute rule when the criteria is met: This option will be available only if you have chosen to apply the trigger when a problem is edited. Choose if you want to apply the trigger only for the first time or every time the criteria is met.

  4. Configure the criteria for problems using the drop-down lists. You can create up to 50 criteria using AND/OR combinations for a custom trigger.

  5. Actions: Configure the actions to be performed when a problem satisfies the specified criteria. You can choose to trigger notifications (via email/SMS), execute custom script, or custom function. You can modify the order of the actions by simple drag-and drop method using the Drag to reorder  icon.

  6. Click Save or Save and Add New.

 

Custom Trigger script will be executed only for 60 seconds.

 

 

 

While creating a custom trigger,
i)  You can change the trigger group.  Click the Change Trigger Group  icon at the top and select the required trigger group from the drop down.
ii) You can disable a custom trigger using the toggle button at the top. 

 List View Actions

From the problem custom triggers list view page, you can manage trigger groups and custom triggers with various actions as listed below:

 

Configure Custom Action

 

Notification Action

You can notify technicians or any concerned person about the problem and its activities via email/SMS. You can create new templates for notifications and save them. These saved templates will be listed under the notification template window.

 

To configure email notification,

 

 

  1. $Technician

  2. $Reported_By

  3. $Group_Members

  4. $Task_Owners

  5. $Associated_Incident_Technicians

  6. $Associated_Incident_Requesters

  7. $Associated_Change_Owner

  8. $Asset_Owner

  9. $Category_Owner

 

 

 Custom Scripts

Custom scripts allow users to modify the application's behavior and UI. In a script file, you can program the actions to be performed. Follow the steps described in the document given below to program the required actions effectively.

Writing Custom Script (A sample Python file)

Custom Function 

By executing custom functions in problem custom triggers, you can manipulate data in ServiceDesk Plus and third-party applications. You can use custom functions to update the problem fields, add notes, and associate incidents. problemObj and context are the arguments supported in custom functions.

To learn how to write custom functions, visit this page.