The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we run Groovy Script outside Script runner add-on?

Narendra Kumar
Contributor
August 12, 2020

Hi Team,

We're trying to run a groovy script on our script runner add-on. Script is having ~500 lines of code.

Since, there is limitation of add-on in cloud version that it'll not run the script more than 60 sec.

Our execution time is more than 60 sec, so terminating the script.

Could you please suggest any alternate- 
 1. If it's possible to increase execution time more than 60 sec?
 2. If we can run script outside script runner add-on ?

Thanks in advance.   

Regards,
Narendra Kumar

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
August 12, 2020

Hi Narenda,

Thank you for your question.

I can confirm that is only possible to run ScriptRunner for Jira Cloud scripts from inside of the ScriptRunner for Jira Cloud plugin.

Currently it is not possible to increase the 60 second timeout we impose inside of ScriptRunner for Jira Cloud and the only workaround is to reduce your script to make fewer API calls to allow it to complete within the time limit or to split it up into multiple scripts.

Regards,

Kristian

0 votes
Narendra Kumar
Contributor
August 12, 2020