Create actions
SLA actions let you automate what happens when an SLA starts, is met, or reaches a specific milestone, such as when it is close to breaching, has breached, or has stopped.
Each action has two parts:
When the action runs — the SLA, goals, and trigger event.
What the action does — one or more action types, such as sending an email, adding a comment, changing the assignee, triggering Jira automation, and more.
Create an action
To create an action:
Go to Time to SLA > Actions.
Select + SLA Action.
Use the fields on the right side of the page to define the scope and trigger for the action.
Field | Description |
|---|---|
Description | Enter a name or short explanation to help you identify the action. |
Apply to | Choose whether the action applies to a single SLA or all SLAs (global). |
Select an SLA | Select the SLA this action applies to. This field is shown when you choose Single SLA. |
Applied goals | Select the SLA goals this action applies to. This field is shown when you choose Single SLA. If an SLA has multiple goals, you can use this feature to configure different notifications for each goal. This flexibility lets you tailor notifications based on specific requirements, such as priority or response time. Example Imagine you have an SLA with the following goals:
In this scenario, you may want to send notifications more frequently for critical work items and notify different users based on the work item’s priority. This feature makes this possible by allowing you to link specific SLA goals to different notifications, ensuring the right information reaches the right people at the right time. Goals may not always have names, so use the goal details that appear when you hover over a goal to identify and select the right one.
|
Trigger when SLA | Choose the SLA event that runs the action. Available trigger options include:
Depending on the trigger you select, additional fields may appear. For example, if you select will be breached in, you’ll need to define how much time before the breach the action should run. |
Activate notifications from a specific date | By default, notifications are sent for all matching work items, including past and future matches. Enable Activate notifications from a specific date if you only want notifications to start from a certain date. Once selected, the Effective From date picker appears, allowing you to choose the date when notifications should start. Use this option if you don’t want the action to run for older matching work items. |
Repeat this action | Run the action more than once, when supported. For example, enter
Assignee, priority, and Jira field updates can’t be repeated. |
Run with permissions of (This field is available only when you edit an action.) | SLA actions run with the Jira permissions of the user who configured the SLA action. This means an action can only perform operations that this user is allowed to perform in Jira. For example, an action may fail if that user:
To avoid permission-related failures, you can edit the action and use Run with permissions of to choose a user who has the required permissions for the projects and work items where the action will run. |
Use the action type gallery on the left side of the page to choose what should happen when the action runs.
After you select an action type, it appears in the Actions section below the gallery. You can expand, collapse, configure, or delete each selected action type.
Action type | What it does |
|---|---|
Send an email | Sends an email notification. |
Send a Slack message | Sends a Slack message using a webhook URL. |
Trigger Jira automation | Triggers a Jira automation rule using a webhook URL. |
Change assignee | Use Change assignee to assign the Jira work item to another user when the action runs. For example, when an escalation SLA is met, you can reassign the work item from an escalation manager to its original support team. |
Add comment | Adds a comment to the Jira work item. |
Set Jira field | Use Set Jira field to update a Jira work item field. For example, select the is met trigger and use Set Jira field to update a text field named SLA Indicator to |
Change priority | Changes the priority of the Jira work item. |
Change status | Not available yet. |
Use dynamic parameters
Some action types support dynamic parameters. Dynamic parameters let you include SLA or Jira work item details in messages, comments, and notification content.
You can use dynamic parameters in:
Email subjects and bodies
Slack messages
Comments
To add a dynamic parameter, type $ or select one of the available parameter chips. For the full list of parameters, refer to this page.
Select one or more action types.
Configure the selected action types.
Select Save.
Action types
You can add more than one action type. For example, one combination of actions can send an email, add a comment, and change the priority when an SLA breaches.
The order of action types does not matter. All selected action types are triggered at the same time. If you need staged changes, such as gradually increasing the priority over time, refer to the Jira automation documentation.
Some action types can only be added once. For example, a work item can only have one assignee and one priority at a time, so Time to SLA prevents adding multiple assignee or priority updates to the same action to prevent conflicting updates.
Send an email
Use Send an email to notify users, groups, or fields when the action runs.
Configure the following fields:
Field | Description |
Subject | Enter the email subject. You can use dynamic parameters. |
Body | Enter the email body. You can use dynamic parameters. |
Recipients | Choose who should receive the email, then select Add. |
If needed, you can click Preview to review the email message.
Send a Slack message
Use Send a Slack message to send a Slack notification when the action runs. Configure the following fields:
Field | Description |
Slack webhook URL | Enter the Slack webhook URL that should receive the message. To find or create a Slack channel webhook URL, follow these steps:
For more details, refer to Slack’s Incoming Webhooks documentation. |
Body | Enter the Slack message. You can use dynamic parameters. |
If needed, you can click Preview to review the Slack message and the parameters.
Trigger Jira automation
Use Trigger Jira automation to run a Jira automation rule when the action runs.
Configure the following fields:
Field | Description |
Automation webhook URL | Enter the webhook URL from your Jira automation rule. For more information, refer to the documentation. |
Automation webhook secret | Enter the webhook secret, if your automation rule requires one. |
Change assignee
Use Change assignee to assign the Jira work item to another user when the action runs. Search for and select the user who should become the assignee.
You can add this action type only once because a Jira work item can have only one assignee at a time. After you add it, the option to add another assignee action is disabled.
Add comment
Use Add comment to add a comment to the Jira work item when the action runs.
Configure the following fields:
Field | Description |
Comment | Enter the comment text. You can use dynamic parameters. |
Comment visibility | For Jira Service Management requests, choose whether the comment is internal or shared with the customer. For other project types, comments are always public. |
For Jira Service Management requests, you can choose the comment visibility. For other project types, comments are always public.
If needed, you can click Preview to review the comment.
Set Jira field
Use Set Jira field to update a Jira work item field.
Supported fields include:
Labels
Components
Priority
Text fields (single line)
User pickers (single and multi-select)
Select lists (single and multiple choice)
Radio buttons
This feature excludes custom fields supplied by third-party vendors. Don't see a custom field you need? Let us know what's missing so we can prioritize it in a future update.
Select the field you want to update from the Jira work item field dropdown. The options you see depend on the field you select.
For example, if you select a date field, a date picker appears so you can choose the date to set. If you select a multi-value field, you can choose how the selected value should be applied:
Option | Description |
|---|---|
Replace value | Replaces the current field value with the value you enter. |
Add to current value | Adds the value you enter to the existing field value. |
For example, you can update the Components field when an SLA breaches. Select Components, select the component you want to add, and choose Add to current. When the action runs, Time to SLA adds the selected component to the work item without removing the existing components. If you choose Replace value instead, the existing components are removed and replaced with the component you selected.
Change priority
Use Change priority to update the priority of the Jira work item when the action runs. Select the priority from the dropdown.
You can add this action type only once because a Jira work item can have only one priority at a time. After you add it, the option to add another priority action is disabled. If you need to change priority in stages, use Jira automation.