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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,063 views 13 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot