JIRA change project key

Hi is there anyway to change a project key and all the issue key associated to the project?
This is one way to do it, but is there any easier way? This involves too many steps and time consuming if the JIRA is big.

  1. Export your JIRA data to XML.
  2. Go through the file and replace the instances of the project's key:
    • in the 'key' attribute of the Project entity
    • in the 'key' attribute of all Issue entities.
  3. Search for the project key in the whole XML file. You should not find too many references. Change any that you find.
  4. Rename all attachment folders, as the folder name depends on the project key. This includes one folder for each issue with an attachment, plus one top-level folder for the project.
  5. Reimport your data.
  6. Reindex the data by navigating to Administration -> System -> Indexing and selecting 'Re-Index'.

2 answers

1 accepted

2 votes

This is the most effective solution. If you do it in DB, there may still be references hanging around and it won't fix attachments.

another workaround is to create a new project with the same configuration as the old project but edit the project key.

do a bulk move issues from old project to new project

0 vote

This feature was implemented on JIRA 6.1 (see release notes), and it is now possible to change project key via the JIRA UI. For the detailed instructions about this feature, you may refer to the links below:

Cheers,

Danilo

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 yesterday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

77 views 2 6
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