Hi Team,
I am working on one POC where we need to download all attachment. When I am using POSTMAN i can see the data in beowser. But I am unable to download in my machine. Please let me know How to download the attachment from JIRA
Hi @Gaurav Jain ~
You can use the attachment's URL to get the content.
Please try below Rest API :
fields
parameter to a value with contains attachments))fields -> attachment[] -> content
content
Thanks,
RamaRao
Hi
It didnt worked. Do u have any sample code to download the attachment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaurav Jain ~ Suppose if you are ready with the link for your attachment i.e. something like https://domain.com/jira/secure/attachment/1007353/file.zip
then you can use either one of below commands to download the attachment.
curl -L -O -k -u 'user:pass' -X GET https://domain.com/jira/secure/attachment/1007353/file.zip
wget --user=user --password=pass https://domain.com/jira/secure/attachment/1007353/file.zip
Also please refer the below Jira REST API documentation from Atlassian for further details.
https://docs.atlassian.com/DAC/rest/jira/6.0.1.html#id150787
Thanks,
RamaRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome @Gaurav Jain !
If you feel like my answer helped you, kindly mark my answer as accepted.
Thanks,
RamaRao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't work for me if there is a comma(,) in file name. Also it is not working for the video files like mp4.
Can you provide solution for that ?
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.