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
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 Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

26 views 0 4
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