Change Issue keys

Hi, I have imported bugs from bugzilla into a new jira project. Now I would like to change the issue keys to make them the same as the bugs ids in bugzilla. Here's what I did on a test instance:

  1. Stop Jira
  2. Update the column ISSUENUM in the table JIRAISSUE
  3. Update the column PCOUNTER in the table PROJECT
  4. Start and reindex Jira

It seems to work perfectly, but before I do that in my production instance, I would like to be sure that it won't have side effects. Did anybody already try to update the column ISSUENUM?

I am Using Jira 6.1 with Oracle.

4 answers

1 accepted

The only problem we got was the link between issues and attachments. The attachment location depends on the issue key. Therefore if you manually change issue keys, the attachments are not reachable from an issue. To fix this we had to write a batch file to reorganise the structure of our attachment directory.

Hi Pierre,

Did you check if you could add new issues to your project without getting constraint errors?

I personally have never tried to update those columns.

Best regards,

Peter

Thanks, yes I did and it works. Do you have an idea of other actions I could do to check if everything is in order?

I would say :

  • edit an issue
  • create a subtask for one of the new issues
  • transition an issue
  • link to an issue
  • search for those issues

Best regards,

Peter

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

158 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you