How to download Jira attachments

Talitha Spaink January 27, 2014

Dear Support,

I would like to ask you if it is possible to download all attachments in Jira. Our version is v4.2.4-b591. Thank you in advance

5 answers

1 accepted

1 vote
Answer accepted
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.
January 27, 2014

Not really, you'd need to traverse through every single issue, look for their attachments and issue a download command.

It would probably be easier to simply go on to the Jira server and take a copy of the "attachments" directory under the Jira Home directory, as that's where Jira keeps them all.

Talitha Spaink January 27, 2014

10x a million you saved my day :)

Andy Kuan October 3, 2016

hi Nic

Do you know the exact syntax?

I used two ways but no of them are working.

with Issue ID:

curl -D- -u myid:mypasswd -X GET http://LPVWA00A0xxx.wellsfargo.com:8081/secure/attachmentzip/21824.zip

with issue Key:

curl -D- -u myid:mypasswd -X GET http://LPVWA00A0xxx.wellsfargo.com:8081/secure/attachmentzip/BR-69.zip

Evgeniy Belov September 27, 2019

It throws a 302, you have to append -L to the commandline also --output <somefile>

4 votes
Georges Moubarak
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.
March 16, 2016

Hi @Talitha Spaink,

I would suggest to use JAM to download your attachments.

0 votes
Raju
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 22, 2015

Folks,

My entry to Atlassian Codegeist 2015 Automate the Atlassian from Command Line has a function that helps you to do just that. Also not only Admins can use this, but even users can use this to download attachments for given JQL. 

-- Demo Query against live instance
-- Automate JIRA attachments download action
&gt; acl --app-name JIRA --browser-name PhantomJS --action get_jira_attachments --userid admin --password 'pongbot' --base-url https://pongbot.atlassian.net --jql 'key=TEST-1'

 

It's a open source plugin. Hoping you will find it useful. Do vote if you see value to it!

0 votes
BartłomiejW February 23, 2014

There is a plugin on Atlassian Marketplace named Download Attachments For Jira allows you to download all attachments for search result. I think it will be a good resolution in your case.

0 votes
BartłomiejW February 23, 2014

There is a plugin on Atlassian Marketplace named <a href="https://marketplace.atlassian.com/plugins/pl.craftware.jira.download-attachments-plugin">Download Attachments 4 Jira </a>allows you to download all attachments for JQL query result. I think it'll work fine for your case.

Suggest an answer

Log in or Sign up to answer