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: 

Merging user accounts

Taylor Huston
Contributor
May 5, 2021

Hi all,

I work for a company that recently acquired another company. We merged in a few of their old Jira Projects into our instance. We tried to do our due diligence, but we have ended up with some duplicate user accounts.

Basically, is there a way (probably with Scritprunner) to iterate through each issue and so something like

if assignee == somePerson@oldDompany.com then assignee = somePerson@currentCompany.com

And perform a similar action for Reporter and Comments?

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
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
May 5, 2021

Hi @Taylor Huston , it is doable for assignee and reporter, but it will be difficult for comments (if you want to change mentions).

I do not have prepared script, but you need to

  1. search the issues by JQL (here is an example: https://library.adaptavist.com/entity/perform-a-jql-search-in-scriptrunner-for-jira)
  2. update the assignee / reporter (example for assignee is here: https://library.adaptavist.com/entity/automatically-update-the-assignee-of-an-issue-in-jira)

Try to put these snippets together and come back here if you need more help. We can debug your groovy code virtually :)

0 votes
Gregory Kneller
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 Champions.
November 5, 2024

the groovy code for data-center is in https://jira.atlassian.com/browse/JRASERVER-3132 

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events