Can a ScriptRunner script time out?

I've seen an issue transition time out before. But how does JIRA handle a ScriptRunner post script that's taking a long time? Will it execute to a point then kill it upon timeout? Will it ever transition but not complete the script?

Also, is there a way to postpone timeout on certain scripts?

1 answer

1 accepted

Accepted Answer
2 votes

The transition will happen... you can test this by adding a post-function that just has:

Thread.sleep(60_000)

The UI will timeout though, you get a message like "we don't know the result of the transition". This is not specific to script runner scripts, any post-function that runs too long can do this.

> Also, is there a way to postpone timeout on certain scripts?

Not really sure what you mean, but the easiest way to just return immediately is to create a new thread and do the work there.

What do you think about this? I elaborated on the issue here: [my other question|https://answers.atlassian.com/questions/8628883] We're receiving this error message: Error Messages: [It seems that you have tried to perform a workflow operation (Back to Open) that is not valid for the current state of this issue (TESDD-3). The likely cause is that somebody has changed the issue recently, please look at the issue history for details.]

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

34 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you