LoginSignup
0
0

More than 5 years have passed since last update.

How to reassign JIRA issues/comments with SQL

Last updated at Posted at 2017-04-24

below is touching JIRA db directry, apparently not supported by Atlassian :exclamation:

  • replace old_username, new_username and project_id appropriately

Update issues - jiraissues

update public.jiraissue set assignee = 'new_username' where assignee = 'old_username'

Update comments - jiraactions

update jiraaction set author = 'new_username' where author = 'old_username_here'
 and actiontype = 'comment' and issueid in (select id from jiraissue where project='project_id');
update public.jiraaction set author = 'new_username' where author = 'old_username'
update public.jiraaction set updateauthor = 'new_username' where updateauthor = 'old_username'

Need to re-index

jira-reindexing.png

Done

:smiley:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0