Export attachements from one project

Geert-Jan Gorter October 15, 2015

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
Geert-Jan Gorter October 18, 2015

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.

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
October 16, 2015

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@\"\" \" "
0 votes
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.
October 15, 2015

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)

Suggest an answer

Log in or Sign up to answer