How to bulk update issues from within a listener Edited

I am looking for advise on the proper Scriptrunner groovy sequence to update few dozens of issues (up to a 100) during listener execution. In essence, I am processing a JQL query in my listener script and based on a condition I would like to update a field in some or all of the issues in the query results. @Jamie Echlin [Adaptavist]

1 answer

1 accepted

0 vote
Gaston Valente Community Champion Sep 01, 2017

Dmitry, i think that one by one is the only way.

Maybe i'm wrong but that's the way bulk update work in standard jira.


//fetch results

// for loop

     // process each issue

it's important to check before every update that the issue can be updated ( in some workflows closed issues cannot be updated ) or include this logic at the jql avoiding those issues

Thanks Gaston, you are probably right, I guess I was hoping for a miracle :-)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

236 views 1 18
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