Use SLA notifications with Jira automation
This page is about Time to SLA for Jira Cloud. Using Jira On-Prem? Click the On-Prem button above.
The Trigger a Jira automation rule feature lets you leverage your SLA notifications to trigger Jira automation rules. For example, when an SLA is breached, you can automatically trigger a Jira automation rule to perform actions like adding comments to issues or creating incident reports.
This document provides step-by-step instructions on how to set up the integration between your Time to SLA notifications and Jira automation.
Step 1: Create a Jira automation rule
Follow these instructions to create a Jira automation rule. For further details, refer to the Atlassian documentation.
Open the Jira project where you want to apply the rule.
Go to Project settings from the side menu.
Select Automation and click Create rule.
Choose the Integrations category, then select Incoming webhook as the trigger.
Ensure the Issues provided in the webhook HTTP POST body option is selected.
Click Next and configure your needed actions. You can add multiple actions, such as creating comments, assigning issues, creating incidents, and more.
Time to SLA provides various smart values to customize your actions dynamically. You can use:
slaDescription: {{webhookData.slaDescription}}
slaValue: {{webhookData.slaValue}}
slaStartDate: {{webhookData.slaStartDate}}
slaTargetDate: {{webhookData.slaTargetDate}}
originStatus: {{webhookData.originStatus}}
targetStatus: {{webhookData.targetStatus}}
startConditions: {{webhookData.startConditions}}
endConditions: {{webhookData.endConditions}}
remainingDuration: {{webhookData.remainingDuration}}
overdueDuration: {{webhookData.overdueDuration}}
elapsedDuration: {{webhookData.elapsedDuration}}
pausedDuration: {{webhookData.pausedDuration}}
elapsedPercentage: {{webhookData.elapsedPercentage}}
Once you’re satisfied with your rule, click Turn on rule.
In this example, we have set up a rule to send a comment when it's triggered:
Step 2: Create a TTS notification
Next, configure a Time to SLA notification to link with your Jira automation rule.
Navigate to the SLA for which you want to add the notification.
Open the SLA’s settings, and click Manage notifiers.
You can either edit an existing notification or create a new one by clicking Add New SLA Notification.
Create the notification following the instructions on this page.
For When triggered..., select Trigger a Jira automation rule as the action.
Paste the webhook URL copied in Step 1.5.
Click Save to finish the setup.
Now, ,f the SLA is breached, the Jira automation rule will be triggered, executing the configured action (for example, Add comment to issue
):
Jira automation usage limits
Time to SLA will attempt to trigger Jira Automation based on your configuration. However, keep in mind that Jira automation may have usage limits or restrictions. If the automation does not trigger as expected:
Refer to the Jira automation documentation and Automation service limits to check for potential usage limits.
Check your usage by opening the Project settings, and navigating to Automation > Usage.