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)

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