Bulk update of custom fields based on linked issue

Malik Mangier November 24, 2020

Hi,

We have 2000+ tickets linked to other tickets (1 to 1 mapping). Now we want to synchronise the value of some fields in a ticket with the value of the same fields from its linked ticket.

So for example ticket A has field1, field2 and field3. Ticket A is linked to ticket B. Ticket B also has field1, field2 and field3. How to copy the value of those fields from Ticket B to ticket A ?

What would be the best way to do that? Scriptrunner maybe? How exactly (or some high level guideline to get started please)?

Thank you!

1 answer

0 votes
Alexander Pappert
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.
December 17, 2020

you could use automation for example

https://docs.automationforjira.com/rule-playground/index.html#/labels/all/customLabelId/1453 

 

for doing it only 1 time, use a manual trigger, else use issue updated trigger

you have to play a bit with the rules.

maybe add some jql filters to define the source issues

 

please make a DB backup before changing 2k items

grafik.png

Suggest an answer

Log in or Sign up to answer