Trigger criteria
Trigger criteria are a set of conditions that determine whether a workflow should start. A condition can be a simple comparison of two values, a complex set of conditions, or even a Jinja-based query. In simple terms, you're setting up the automation to only trigger when certain conditions are met or values are present. This can be helpful to customize when you want a workflow to run. For example, rather than having it run for all incoming tickets, you would use trigger criteria to set a workflow to run for just tickets related to password reset requests.
The trigger criteria section of the trigger menu will only appear after you've chosen a trigger type that works with criteria. This includes core webhook triggers and any tool-specific trigger.

Trigger criteria submenu

Click
to add new trigger criteria. This will add a new row of fields under the Trigger Criteria submenu.
Click
to open the trigger criteria test dialog. This dialog allows you to use past events in your relevant tool to test out conditions for future events. From this dialog, you can also add new trigger criteria. Note that the trigger must be set to enabled for this dialog to work. Learn more about this dialog in the Trigger criteria test dialog section of this document.
The Key field is used to access the trigger context. A trigger context is a dictionary of key-value pairs that contain the data of the event that triggered the workflow.
Click
to open a Monaco editor dialog.
The Operator drop-down is used to compare the value of the Key field with the Value field. Click the arrow to open the drop-down list of all possible operators.
Equals
Not Equals
Contains
Starts With
Ends With
Greater Than
Less Than
Exists
Does Not Exist
In - be sure to press the
Enter
key to convert the value into a listNot In - be sure to press the
Enter
key to convert the value into a listJinja Evaluation
The Value field contains the text parameter of the Key field to compare with the value of the trigger context. Note that only string values are supported in this field. If you need to evaluate non-string values, you can use Jinja Evaluation to do so.
Click
to remove the related trigger criteria.
Trigger criteria test dialog
The dialog is made up of two panels. The left panel shows all prior triggering events in a list, with the most recent events displayed at the top. You must enable the trigger to receive trigger events. The system will approximately log the latest 10 events for one day. There is no throttling on the logging system.

Click on the value of the trigger context for any of these events to generate and display its criteria in the right panel. This will automatically map the field accessor and the selected value of the trigger context. Note that the events in the left panel list have color coded headers at the top of each, with the color denoting a different status for that event. Each trigger type may have different trigger context data or formatting.
VALID - Blue
A valid trigger criteria means the triggered event satisfies all possible conditions and will start the workflow. A criteria is satisfied when all specified conditions are satisfied by logical means against the trigger context. All valid trigger events should have a corresponding workflow execution.
FILTERED - Yellow
A filtered trigger will not start the workflow, typically for one of the following reasons: a condition is logically unmet by design, a condition is malformed and unparseable, or the trigger request itself is malformed and rejected by the system. A filtered trigger event may show warnings if errors are found while processing the trigger event.
If no criteria are set, anything will be considered a valid triggering event.
Alternatively, click Add a Trigger Criteria to create a new row for a new criteria underneath any existing criteria in the right panel.
You can’t set more than one condition on the same field. Rewst will adopt the first condition and destroy any future conditions without giving a warning message.
Though you can only have one condition on specific field at a time, you can have as many conditions as you wish, as long as they are each on a different field.
Trigger context examples
Save trigger criteria
You'll need to save your updates for the trigger criteria to take effect. How you do this will depend on if you are adding criteria directly under the Trigger Criteria submenu or within the Trigger Criteria Test dialog.
Click Submit under the Trigger Criteria submenu to save your added or updated trigger criteria.

Click Save in the Trigger Criteria Test dialog to save and close the dialog.

While the Trigger Criteria Test dialog is open, you can press the F8
key to save the trigger.
Last updated
Was this helpful?