Trigger categories allow you to visually group triggers and make it easier for you to organize and manage your triggers. This article describes how admins and agents with business rules permissions can create trigger categories.
This article includes the following sections:
- About trigger categories
- Creating trigger categories
- Organizing triggers within categories
- Using the Zendesk API for trigger categories
About trigger categories
To help you manage triggers in your account, you can add additional trigger categories. Trigger categories enable you to arrange triggers into groups or collections based on trigger functions or other criteria. This feature is particularly useful for accounts that have a large number of triggers. You can expand or collapse the categories to show or hide triggers in each collection.
When you decide how to group your triggers into categories, keep in mind that the order you set for trigger categories must match the order in which you want triggers to run. Run order will have a big impact on how you decide to create and organize triggers within categories. For example, in the illustration above, all triggers in the Email Triggers category run before any triggers in the API Triggers category. For more information, see Understanding when triggers run and fire.
Creating trigger categories
You can create new trigger categories and add triggers to them.
To create a trigger category
In Admin Center, click Objects and rules in the sidebar, then select Business rules > Triggers.
The triggers list appears.
- Open the Add trigger drop-down menu at the top of the Triggers page and select Add category.
- Enter a name for the category and click Add. A new category appears at the bottom of the triggers list. You can create new triggers and add them to the category, or move existing triggers to the category.
- To create a new trigger and add it to the category, click +Add trigger in the category.
For details on adding triggers, see Creating triggers for automatic ticket updates and notifications.
- To move an existing trigger to the category, you can drag-and-drop it into the category or edit the trigger and select the Category.
You can also reorder triggers using drag-and-drop to move triggers between categories.
Organizing triggers within categories
Once you have added trigger categories, you can do the following to organize triggers within categories:
- To set the order of triggers within a category, see Reordering and sorting triggers.
- To move triggers from one category to another, you can:
- Drag-and-drop one or more triggers between categories. For more information on how to drag-and-drop triggers, see Reordering triggers.
- Select the checkbox next to one or more triggers, click Move to category, select the category, and click Move. When using this method to move triggers into a category, their order is based on the order in which they were selected.
- Edit the trigger and select a new Category for the trigger
- To add a new trigger to a specific location in the triggers list, click the options menu icon () next to a trigger, then choose Add trigger below from the menu.
- To delete a trigger from a category, see Deleting triggers.
Using the Zendesk API for trigger categories
Once you are using trigger categories, you can designate a category when creating a new trigger via the Zendesk API. If you don’t specify a category when creating a new trigger, Zendesk will select a category for you. You’ll also be able to make changes to trigger categories themselves through the API. See our API documentation.