Project key rename

If a project key is renamed, the attachments are still retained in a folder with the old key. When we import the project into a different JIRA instance using Project Import, does it expect the attachments in a folder named after the new key or the old?

1 answer

1 accepted

Looking at this documentation it seems that after import the attachments will be searched in a folder named by the new key

https://confluence.atlassian.com/display/JIRA/Editing+a+Project+Key#EditingaProjectKey-Notesforchangemanagement

After introducing renamable projetc keys JIRA always puts the attachment directory named by the original project key, but when you import since the project key history is lost then the attachments will be looked up in a directory named again by the original key which should in that case be the latest project key.

For reference see com.atlassian.jira.issue.attachment.DefaultAttachmentStore

After introducing renamable projetc keys JIRA always puts the attachment directory named by the original project key, but when you import, since the project key history is lost then the attachments will be looked up in a directory named again by the original key which should in that case be the latest(new) project key.

For reference see com.atlassian.jira.issue.attachment.DefaultAttachmentStore

If you make a simple test you'll see confirmation of that. The origina project key is used only during projetc import to import attachments, and after the import finished all the attachments are put in the JIRA attachments directory unser the new project key.

Just performed a test. The attachments need to be placed in the import/attachments folder named with the old project key from the source. When imported, it will be placed in a folder with the new project key.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

475 views 1 18
Join discussion

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