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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

137 views 5 9
Read article

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