Plan and approve changes
Conditional actions in change templates
Add if-then-else logic to change templates so each change gets the right approvals, tasks, and attribute updates based on urgency, priority, or impact.
Streamline your change management processes by incorporating intelligent, automated logic directly into your change templates. With Conditional Actions, you can define specific criteria that, when met, trigger designated actions, allowing you to handle diverse, sequence-driven change scenarios with greater efficiency and precision.
This article guides you through understanding and setting up conditional actions within your change templates.
Understand conditional actions
Conditional actions allow administrators to introduce "if-then-else" logic into change templates. This means you can automate different sequences of actions based on the attributes of a change request. Here are the key components:
-
Conditions: These are the criteria the system checks. Conditions are typically based on change attributes such as 'Urgency', 'Priority', or 'Impact'. You can define one or more conditions.
-
Condition Groups: You can group multiple conditions together.
-
Conditions within the same group are combined using an AND operator (all conditions must be true).
-
Multiple condition groups can be linked by an OR operator (if any group's conditions are met, the associated actions trigger).
-
-
'Then' Actions: These are the operations executed if a condition or a group of conditions evaluates to true. You can add multiple actions, such as sending for approval, assigning a task, or updating change attributes.
-
'Else' Fallback Actions: These are the operations executed if none of the defined conditions or condition groups are met. This ensures a default path for changes that don't match any specific criteria.
-
Order matters: If a conditional action has more than one branch, branches are checked from top to bottom and only the first matching branch runs.
For example, you could configure a conditional action to automatically send a change for CAB approval if its 'Urgency' is 'High' AND 'Priority' is 'Urgent', OR if its 'Impact' is 'High'. If neither of these conditions is met, a fallback action might assign it to a specific team for standard review.
Set up conditional actions in your change templates
Follow these steps to add and configure conditional actions within a change template:
Access your change templates
Open change templates
Go to Settings > Your workspaces > [Workspace name] > Change management (Service management) > Change templates (Templates and forms).
Open a template
Click Add to build a new template, or select an existing template to modify.
Add a conditional action to a stage
Open the Stages tab
Within the template editor, go to the Stages tab.
Add a stage if you need one
Click Add stage, provide a name (e.g., 'Initial Review'), and click Add.
Expand the stage
Expand the stage where you want to introduce the conditional logic.
Add an action
Click Add action within that stage.
Select Conditional action
From the list of available actions, select Conditional action.
Define the 'If' conditions
Once you've added a conditional action, you'll configure its logic:
Add a condition
In the 'If' section of the conditional action panel, click Add condition to start your first condition group.
Choose an attribute
Choose an attribute from the dropdown list (e.g., 'Urgency').
Set the operator and value
Select the desired operator (e.g., 'is') and the value for that attribute (e.g., 'High').
Add a condition to the group
To add another condition to the same group (AND logic), click the + icon (or similar 'add condition' button within the group). Define the attribute and value for this new condition (e.g., 'Priority' is 'Urgent').
Add a condition group
To create a separate condition group (OR logic), click Add group. Then, click Add condition within this new group and define its attribute and value (e.g., 'Impact' is 'High').
This setup would mean the 'Then' actions trigger if (Urgency is High AND Priority is Urgent) OR (Impact is High).
Specify the 'Then' actions
These actions execute if any of your defined condition groups are met:
Add an action
In the 'Then' block of the conditional action configuration, click Add action.
Select the action type
Select the type of action you want to perform from the list (e.g., 'Send for approval', 'Assign a task', 'Update change attributes').
Configure the action
Configure the specifics of the chosen action. For example, if you selected 'Send for approval', you might choose an approval policy and name the action (e.g., 'CAB Approval').
Save the action
Click Add (or a similar button) to save this action to the 'Then' block.
Add more actions
To add multiple actions to the 'Then' block, repeat these steps.
Set up 'Else' fallback actions
These actions execute if none of the 'If' conditions are met:
Go to the 'Else' block
After configuring your 'Then' actions, click Continue (or scroll to the 'Else' section).
Add a fallback action
In the 'Else' block (often labeled as 'If no condition matches' or similar), click Add a conditional action or Add action.
Select the action type
Select the type of fallback action you want to perform.
Configure the action
Configure the specifics of this fallback action.
Save the action
Click Add (or a similar button) to save this action to the 'Else' block.
Finalize and publish your template
Save the conditional action
Once you have configured all conditions, 'Then' actions, and 'Else' actions, click Continue or Add in the conditional action panel to save its configuration.
Publish the template
Your work saves as a draft. After setting up all stages and actions in your template, click Publish, check the prefilled Version name, review the What's New note, and click Publish again to make the change template live. Learn more in Versioning change templates.
Use conditional actions for advanced workflows
Conditional actions let you build change templates that adapt to each change. By defining rules based on change attributes, you can ensure that changes are routed correctly, necessary approvals are sought automatically, and tasks are assigned to the right teams without manual intervention. This feature is particularly useful for:
-
Implementing risk-based approval processes.
-
Automating different workflows for standard, normal, and emergency changes.
-
Ensuring compliance by adding specific checks or tasks based on change characteristics.