How to share the SLA time remaining with customers

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

In some cases, we would like to share the SLA time remaining with customers via the portal for service tickets. As Jira does not offer this option natively, an alternative solution is possible using Automation rules.

Solution

  1. First, Choose the SLA you want to share with your customers via the portal. In this example the SLA configured is Time to resolution:

    (Auto-migrated image: description temporarily unavailable)
  2. Then go to Project settings > Automation and configure an Automation rule with the trigger as Scheduled. Select the frequency, the days of the week, and the timezone at which the rule will be executed:

    (Auto-migrated image: description temporarily unavailable)

    Then set the following JQL:

    1 "<SLA Name>" = running() and "<SLA Name>" != breached()

    The JQL will filter the tickets under the condition set where the rule will be applied.

  3. Then set the comment action to

    (Auto-migrated image: description temporarily unavailable)

    Add a comment to warn the reporter of the ticket:

    1 2 3 4 5 Hey {{issue.reporter.Displayname}}! Goal duration: {{issue."<SLA NAME>".ongoingCycle.goalDuration.friendly}} SLA remaining: {{issue."<SLA NAME>".ongoingCycle.remainingTime.friendly}}

    Regarding the smart values above:

    {{issue.reporter.Displayname}} - Will show the reporter display name.

    {{issue."<SLA NAME>".ongoingCycle.goalDuration.friendly}} - Will show the goal duration in a simple and friendly view.

    {{issue."<SLA NAME>".ongoingCycle.remainingTime.friendly}} - Will show the SLA remaining in a simple and friendly view.

    Remember to select the Share with the customer option in the dropdown to allow the comment to be publicly added.

This automation rule will continue to send the comment while the SLA is running and not breached. While the time counting is paused, following the SLA configuration, the rule will not send the comment.

Results

In the Internal Issue View:

(Auto-migrated image: description temporarily unavailable)

In the Portal view:

(Auto-migrated image: description temporarily unavailable)

When the automation rule runs, a public comment will be added to the ticket, containing the Goal duration and Time remaining for the SLA selected.

You can also view more details about Automation rules in the document below:

Updated on April 2, 2025

Still need help?

The Atlassian Community is here for you.