How do I export attachments associated with the projects?

How do I export the attachments associated with the projects using the XML project export/import tool. I heard it requires a soap call - can anyone advise on how to do this?


2 answers

If you're running on-premisis Jira, the easiest thing to do is copy the flat files from disk directly. They are located in $JIRA_HOME/data/attachments (or %JIRA_HOME%\data\attachments on Windows) by default. You can look in "System Information" in the admin panel to find the location for sure. In order to do a full restore, simply dump the attachment directory structure into the same location on your destination host and import the XML. If you're doing a project import, copy the Project key directory from your attachments backup and dump it in $JIRA_HOME/import/attachments and point Project Import at your XML file.

If you're trying to get them to have their original file names, you will need to either do something in the API or write a SQL script to provide the name of the file on disk and it's original name, then rename the flat file back to it's original name. Filenames are obfuscated on disk with modern versions of Jira.

Hello c olson,

Give JAM( a try. It can export and then import all your attachments to a second instance.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

278 views 6 15
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
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