Can anyone help me on how can I get the value of goal on SLA(ServiceDesk) to use it in my groovy script?
Hi @cgadade ,
I did a bit of digging and I'm not so sure that you can do this with JSD API. I might be wrong though.
https://docs.atlassian.com/jira-servicedesk/4.11.0
However, JSD Rest API has a Get call called Get Sla Information (by Id) that will work for you.
You can parse the result to get the "goal duration" which represents SLA Goal duration.
However, if you want to get the data with Groovy scripts, I suggest using Time to SLA (available for Jira Core, Software and Jira Service Desk)
With Time to SLA, you can also set dynamic SLA Goals (different SLA Goals for each issue) , and dynamically change it with a script or use it in a script.
Let me know if you have any questions.
Regards,
Gökçe
If you're looking for more advanced SLA options that these available in a standard JSD module, I'd give SLA PowerBox a try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.