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

Update SLA from Script

Philipp Kriegel August 25, 2020

Hi there,

I go the task to pause/unpause a SLA.

My attempt was using Scriptrunner, this way there was no need to develop a complete plugin.
On my development system I got it running.

What I do is, that I get the issue customfield value of the sla I have to pause.
Inside the value is a history list, adding a new pause event there and saving works, pausing the sla without moving to a new status.
I also set the boolean in the ongoing data.
The issue gets an reindex at the ende.

My problem now is, that this works so far only on my development system.
The other two systems I have tested the script wont pause the SLA.

All systems are running the same Jira 8.7.1, Servicedesk 4.7.1 and Scriptrunner versions.
All are running against a Postgres 72

Do you have an idea why the SLA pauses on one but not on a another system?

Thanks for reading this so far

3 answers

1 accepted

0 votes
Answer accepted
Philipp Kriegel August 26, 2020

Found my Answer,

the new Timeline event was created in the future.

0 votes
Tomáš Vrabec _neresit_cz_ January 1, 2024

Even in 2024, your script would be appreciated :-D 

Philipp Kriegel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2024

Hi there, sorry for the late reply.
Sadly i can't find the script anymore.

As far i can remember, there is a service / database-table containing the events from the SLAs. I added there a new "plause" entry.

Hope this helps a bit.

0 votes
Tiffany Wortham
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.
April 6, 2023

Hi Phillip,

I know this was a while ago, but would you happen to have the script that you used to achieve this?

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events