How to limit data directory for single project export?

Steinar Bang
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 12, 2015

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?

 

Thanks!

Steinar

 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2015

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

Steinar Bang
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2015

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.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2015

Yup. Project key is very obvious :-)

Suggest an answer

Log in or Sign up to answer