Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Populate date field with the date an SLA will breach

Rob B
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2020

Is it possible to auto populate a date field with when the SLA will breach? Ive looked at script listeners but i cant find anything.

1 answer

0 votes
Gökçe Gürsel {Appfire}
Atlassian Partner
December 16, 2020

Hi @Rob B ,

You can easily do this using Time to SLA.

You just need to define a notifier to fire an event when the SLA is breached. After this configuration, you can easily catch this event with Automation or Script Runner and define a rule or write a small script to set the date field.

eveny-jira.png

 

Please let me know if you have further questions.

Regards,

Gökçe

Rob B
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 21, 2020

Hi, thanks for the reply but they have already set the 75+ SLAs in Jira so cant change them to Time To SLAs. We do use Time To SLA in another Jira as well :(

Gökçe Gürsel {Appfire}
Atlassian Partner
December 21, 2020

Do you have Automation or Script Runner?

Rob B
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 21, 2020

Yes Script Runner

Gökçe Gürsel {Appfire}
Atlassian Partner
December 21, 2020

You can set up an escalation service (Job) that runs the JSM SLA function breached() or everBreached() and set the date field accordingly. It has the set custom field snippet. You might want to add a if check to set the empty cfs only.

https://confluence.atlassian.com/servicedeskserver041/using-jql-queries-specific-to-slas-969531109.html

Screen Shot 2020-12-21 at 13.54.38.png

Automation has a dedicated trigger named Service rule breached which will work in your use case. You can check out the rule playground: https://docs.automationforjira.com/rule-playground/index.html#/rule/new/new

 

Please let me know if you have further questions.

Cheers,

Gökçe

Suggest an answer

Log in or Sign up to answer