Can I specify different SLAs based on the time an issue is created?

I have a client whose contracted SLA specifies one response time if an issue is created during working hours and a different (longer) time if an issue is created outside of working hours. Can this be implemented in JIRA Service Desk (cloud) and, if so, how?

What I want to implement is a rule that duplicates this logic (the part in bold is what I'm specifically asking about, but I thought seeing the full logic might help get a better answer):

If priority = 1 then ( if (created_time < 8:00 AM or created_time > 5:00 PM) target = 1h else target = 30m ) else if priority = 2 then target = 1h else if priority = 3 then target = 10h else if priority = 4 then target = 20h else target = 50h

1 answer

1 accepted

Hi Andy,

To resolve your issue you need to define a calendar first which covers the 8am to 5pm time period. See below for example

image2015-12-15 9:24:24.png

You can also add in any holidays to this calendar that you want to ignore so this might include public holidays as well as agreed periods when the SLA is relaxed. Here is an example with the 1st of January set as a holiday.

image2015-12-15 9:36:50.png

Now that you have two different calendars we can create the SLA tracking. So here is an example showing how you would build up your condition as described above.

image2015-12-15 9:52:47.png

Note that the way SLA is calculated is each line is considered in turn until the JQL returns true and the calendar timing matches. So the first two lines cover your P1 and different times.

Using this approach you can build complex SLAs with ease. One thing to note is this will have some curious results when an issue is raised at 4:31 pm as it will originally have a 30m target, or at 7:31 where it would have a 1 hour target. You may need to consider how you want to handle these edge cases.

Hope this helps



Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

390 views 6 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot