Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to clear the calculated value of a SLA

Paul Wilkinson August 29, 2024

Hi

I need to clear the calculated value of a SLA when an event occurs (i.e. when a ticket is commented). I mean clear NOT restart from where it was paused.

I tried this in groovy:

issue.setFieldValue("customfield_xxxxx","" ) where xxxxx is the SLA customfield

but, although the returned value by issue.getAsString("customfield_xxxxx") is null, the value of the SLA is not recalculated in the Issue.

Can anyone suggest a solution?

Thanks

Paul

1 answer

0 votes
Anandhi Arumugam
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 30, 2024

Hi @Paul Wilkinson 

Have you tried this API endpoint?

https://<instance_name>.atlassian.net/rest/servicedesk/1/servicedesk/sla/admin/task/destructive/reconstruct?force=true

Please refer to the documentation https://confluence.atlassian.com/jirakb/how-to-use-automation-to-recalculate-sla-on-a-specific-issue-subset-of-issues-1255455124.html

Hope this helps! 

Paul Wilkinson August 30, 2024

Thanks,

We are using DataCenter, not Cloud.

How can we make it work in DataCenter 

Thanks again

Paul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events