/
How to trigger Automation for Jira based on SLA breaches

How to trigger Automation for Jira based on SLA breaches

This page is about Time to SLA for Jira Data Center.

With Time to SLA, you can trigger Jira automation rules based on SLA breaches. Follow the steps below to configure an automation rule.

Prerequisites

Before you begin, ensure that:

  • You have Time to SLA installed and configured in your Jira instance.

  • You have Automation for Jira installed and are using the paid version (third-party integrations are not available in the Lite version).

  • You have the necessary Jira administrator or project administrator permissions to create automation rules.

Steps

  1. Go to the Automation Rules page.

  2. Click Create Rule.

  3. Click SLA threshold breached (Time to SLA).

  4. Select SLAs, Trigger type, Repeat interval(optional), Enable working calendar(optional).

    • SLAs - Add notifiers to the selected SLAs.

    • Trigger when SLA – Your options are:

      • Is breached: When the SLA is breached, the rule will be triggered. 

      • Will be breached in: Define a duration and rule will be triggered when there is time left as much as specified duration to SLA breach.

      • Has been breached for: Define a duration and rule will be triggered after the SLA breach and that duration pass.

      • Has reached: When the specified percentage of SLA reached, the rule will be triggered.

    • Repeat every – When enabled, the trigger will be repeated at every given interval.

    • Enable working calendar – When enabled, the trigger will be based on working calendars. 

      For example, in a 9 AM-5 PM and Monday-Friday calendar, a trigger set for 1d before an SLA is breached at 12 PM on Monday will be triggered at 12 PM on the previous Friday.

  5. Click Save.

Smart values

Parameter

Type

Description

Parameter

Type

Description

slaName

String

Name of the SLA

slaDuration

String

SLA value as a time string

remainingDuration

String

Remaining time of the SLA as a time string

breachDuration

String

Breach time of the SLA as a time string

elapsedDuration

String

Elapsed time of the SLA as a time string

pausedDuration

String

Paused time of the SLA as a time string

startDate

Date

Start time of the SLA

endDate

Date

End time of the SLA

targetDate

Date

Deadline of the SLA