Forums

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

Time To SLA - get working duration for issue

Gleb Kartashov
Contributor
May 13, 2020

Hi!

I'm designing a script which can disallow chaning SLA if target SLA will instantly fail (become overdue). To calculate this I need to subsctract current working duration from target SLA max resolution duration

I've implemented a ScriptRunner Script Listener targeted on Issue Updated event and I need to get Working Duration value from TTS plugin (see screenshot)

image.png

Snapbytes Documentation only has this value covered in "Reports and gadgets" section (https://confluence.snapbytes.com/display/TTS/SLA+Working+Duration+Analysis), but I could not find any info on how to actually get and use this value with Groovy scripts

 

Time to SLA version is 9.4.0

ScriptRunner version is 5.8.0-p5

1 answer

1 accepted

0 votes
Answer accepted
Tuncay Senturk _Snapbytes_
Community Champion
May 13, 2020

Hi @Gleb Kartashov 

Have you considered using Time to SLA Notifier to send an event in case of breach? In this case, you can implement a Script Listener for those breaches.

Here you can get more info regarding TTS SLA Notifiers

Also, TTS has Groovy scripts documentation here, it might help.

I hope it helps

Tuncay

Gleb Kartashov
Contributor
May 13, 2020

Thanks, found everything I need in Groovy scripts documentation

Tuncay Senturk _Snapbytes_
Community Champion
May 13, 2020

I'm glad that it helped

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events