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.

  1. Open the Jira project where you want to apply the rule.

  2. Go to Project settings from the side menu.

  3. Select Automation and click Create rule.

    image-20241107-115959.png
  4. Choose the Integrations category, then select Incoming webhook as the trigger.

    image-20241107-120008.png
  5. Jira will generate a unique webhook URL. Copy this URL.

  6. Ensure the Issues provided in the webhook HTTP POST body option is selected.

  7. 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}}
  1. 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.

  1. Navigate to the SLA for which you want to add the notification.

  2. Open the SLA’s settings, and click Manage notifiers.

  3. You can either edit an existing notification or create a new one by clicking Add New SLA Notification.

  4. Create the notification following the instructions on this page.

  5. For When triggered..., select Trigger a Jira automation rule as the action.

  6. Paste the webhook URL copied in Step 1.5.

  1. 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: