Migrating from local JIRA Server to JIRA Cloud - how to upload attachments

Any help gratefully received.

I'm in the process of migrating our local JIRA server instance up to the cloud. I've successfully uploaded a backup file containing just the activeobjects.xml and entities.xml files, so that's a good start... but how to I go about getting the content of the jira-home/data directory up to the cloud?

I've tried to edit the export zip file to include them on import, but I just can't seem to get that to work. I always get an error message that the file doesn't contain entities.xml, even tho it's clearly there. I've tried packaging it back up using windows, 7zip as I'm on a mac, but still no luck.

I can't see an option to add the attachments via any other means, can anyone help?

2 answers

2 votes

There have been changes to how that Server to Cloud migration handles this attachment aspect.  In previous iterations, you could simply create a single zip file that contained all this data with their respective zip files and import just that.  But now you will actually need 4 completely separate zip files:

- attachments.zip
- avatars.zip
- logos.zip
- backup.zip

Backup.zip will only contain:
- entities.xml
- activeobjects.xml

  1. First you run the import with the - backup.zip (which it sounds like you have already done)
  2. then you run the import again with the - attachments.zip
  3. then you run the import again with the - avatars.zip
  4. then you run the import again with the - logos.zip

So you actually have to perform 4 different imports because you can only upload one file at a time.  This method should allow you to complete this Server to Cloud migration with the attachments included.

Hi Andrew, thank you for your reply.

I've tried to follow your instructions but I seem to be getting the same error, as shown below:

Import error

There was an error importing file attachments.zip: Validation failed. Following issues were reported:The import archive doesn't contain entities.xml file.

 So this is after I have successfully imported the main backup.zip file. I'm then running the 'Restore System' option again but just providing the attachements folder in a zip file. I've tried with it as the root of the zip file, as well as unpacked... but I get the same error.

Is there a consistent way of creating the attachments.zip file successfully? I'm using a Mac if that might be causing a problem.

Many thanks, 


0 vote

If you see the error "The import archive doesn't contain entities.xml file", perform the command like unzip -l jira-export.zip and make sure your zip file keeps the expected archive structure as follows:

├── activeobjects.xml
├── entities.xml
├── data
│ ├── attachments
│ └── avatars
└── logos

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 Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

104 views 0 2
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