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

1 vote
Answer accepted
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Contributor
November 5, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events