Export attachements from one project

Hello,

one of our customers would like to export all attachements from a single project. Can anybody tell us how this works? Many thanks.

3 answers

0 votes

There's no function for export attachments from JIRA in the UI really.

You can grab them from the server file system in a reasonably logical order if you want (they're saved by project and issue key, but with modified file names)

Here is an example using JIRA Command Line Interface (CLI). Don't let all the quoting through you off wink. Basically, this is getting a list of all issues in your project and for each of those, getting a list of all attachments, and for each of those getting the attachment and putting in a unique file

jira --action runFromIssueList --project "PROJKEY" --common "--action runFromAttachmentList --issue @issue@ --common \"--action getAttachment --issue @issue@ --id @attachmentId@ --file \"\"@issue@/@attachment@\"\" \" "

Yes, thats fine. At /var/atlassian/application-data/data/attachments are folders with name same as the projects. Thats good. I've export the folder of this project. I hope thats fine for the customer. Unfortunately, these are just thumbnails, but that is hopefully good for the customer. Thanks for help.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

749 views 5 17
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