How to limit data directory for single project export?

I need to move a single project from a hosted JIRA to cloud JIRA.

The recommended procedure is to:

  • Export the entire hosted JIRA as XML
  • Export the hosted JIRA data directory (where the attachments live)
  • Spin up a test instance of JIRA that is the same version as the hosted JIRA
  • Do a single project import into the test instance
  • Upgrade the test instance to the newest version of JIRA
  • Do an XML export of the test instance
  • Import the test instance's XML export in Clould JIRA
  • Upload the data directory to cloud JIRA

What the procedure doesn't cover, is how to limit the data directory to just the attachment that belong to the single exported project?

Should the data directory be imported into the test instance?  When should it be imported to the test instance? (before the upgrade? After the upgrade?)  Will a garbage collection be run automatically on the attachments? Do a garbage collection need to be run manually on the attachments?

Or isn't it necessary to do any limitation of the data directory, because cloud JIRA will drop all uploaded orphaned attachments on the floor?





1 answer

1 accepted

0 vote

You have to do the "limit data to current project" by hand, because JIRA has no way of knowing what you are actually planning to do.  Unless you explicitly delete all the projects you don't want to transfer when you're working in the temporary test system, it can't know what you're doing.  The attachments directory has a clear structure though - it's easy to see what directory contains the project - just delete all the others after you've restored it from Cloud

Ok, thanks! If the data directory is organized with readable names for the projects it should be easy to limit it to what belongs to the single project.

Yup. Project key is very obvious :-)

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 Apr 17, 2018 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...

765 views 2 19
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