Any way to make async/ parallel requests using Scriptrunner?

Christopher Hoffmann
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!
November 5, 2020

Hello!

I'm pretty new to the Scriptrunner and the groovy language, but I have some working code up and running.

Our goal: we want to automatically set some fields on old issues, depending on other fields. So far so good, I got code that is executed for each issue from ja JQL result etc. Problem is, we're facing hundreds of issues, which leads to a longer execution time of the script - more than 60s - which is the limit for the Scriptrunner. 

Question: Is there any way to make parallel get() requests using the Scriptrunner or use something like async(get(firstissue), get(secondissue), ...)? Or is it possible to do so in Groovy (as mentioned, I'm beginner in this language, just worked with some js and python before)?

Thanks in advance!

1 answer

0 votes
Ekaterina Berezutskaya December 5, 2024

Good day Christopher!

Did you solve that problem?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events