The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Download attachment API not working

Docubuilder Suppoort
March 5, 2024

We are using the below API to download an attachment from JIRA, but suddenly now we are getting 404 not found error.

https://datacommunique.atlassian.net/secure/attachment/{attachment-id}/{fileName}

 

Is this API is permanently removed or changed?

attachemnt API.png

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Bill Sheboy
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 Champions.
March 5, 2024

Hi @Docubuilder Suppoort 

I believe you only need the attachment id for the download.  Please try this one:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-attachment-content-id-get

Kind regards,
Bill

Docubuilder Suppoort
March 6, 2024

@Bill Sheboy Thankyou for the reply. Yes If I change the API version 2 or 3 it works fine, but my question more on the API which I was mentioned and that was working before and now its not working.

 

https://datacommunique.atlassian.net/secure/attachment/{attachment-id}/{fileName}

Bill Sheboy
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 Champions.
March 6, 2024

Perhaps that is a deprecated method of getting the attachment.  I was only able to find a single reference to that approach in this older post in the developer community area:

https://community.developer.atlassian.com/t/download-attachment-from-rest-api/40860

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events