How to bulk update issues from within a listener

Dmitry Tyomkin September 1, 2017

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. @JamieA

1 answer

1 accepted

0 votes
Answer accepted
Gaston Valente
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 1, 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.

//jql

//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

Dmitry Tyomkin September 1, 2017

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

Suggest an answer

Log in or Sign up to answer