Icon

How to Use the Changes Function for State Transitions

Learn how to effectively use the changes function to manage state transitions and trigger event-based rules in ticketing systems.

By Jonathan Lapinsky

In this guide, we'll learn how to use the changes function to set up conditions that trigger actions based on state changes. This function is useful when you want to monitor transitions, such as when a ticket's severity changes from any status to a specific one, like urgent. By understanding how to configure these conditions, you can ensure that event-based rules are executed effectively, such as notifying users when a ticket's severity changes. This approach differs from simply checking if a ticket's severity is equal to a certain status, as it focuses on the transition itself.

Let's get started

Here's how to use the changes function. It's crucial when setting up conditions to change from one state to another. In this example, we'll examine a rule and navigate to your conditions.

1
Click on "EDIT"
Step #1: Click on "EDIT"

In the conditions section, you can change the severity.

2
Click here
Step #2: Click here
3
Click on "Severity"
Step #3: Click on "Severity"

Select a function

4
Click on "Select a function"
Step #4: Click on "Select a function"

Notice in the function dropdown that you can select "changes", providing you with two different values.

5
Drag here
Step #5: Drag here
6
Click here
Step #6: Click here

This allows you to trigger an event-based rule whenever the severity changes from any status to a specific one.

7
Click on "Select a value"
Step #7: Click on "Select a value"
8
Click here
Step #8: Click here
9
Click on "Select a value"
Step #9: Click on "Select a value"

This status would be something like "urgent."

10
Click here
Step #10: Click here
11
Click here
Step #11: Click here

Whenever a ticket is updated and its severity changes to urgent, any configured actions, like notifying a user, will be triggered.

12
Click on "UPDATE AND CONTINUE"
Step #12: Click on "UPDATE AND CONTINUE"
13
Click on "ADD ACTION"
Step #13: Click on "ADD ACTION"
14
Click on "Select an action"
Step #14: Click on "Select an action"
15
Click on "Notify User"
Step #15: Click on "Notify User"

This differs slightly from setting up a condition where the severity is marked as urgent.

16
Click here
Step #16: Click here
17
Click here
Step #17: Click here
18
Click here
Step #18: Click here
19
Click here
Step #19: Click here

This will trigger your actions whenever a ticket with a severity marked as urgent is updated. Any updated ticket with urgent severity will activate these actions. It doesn't focus on status changes, such as from high to urgent or urgent to low. It simply checks if the severity is urgent. You can set up two different options, allowing you to monitor state changes between two different conditions.