Download attachment API not working

Anil Kumar 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

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 Leaders.
March 5, 2024

Hi @Anil Kumar 

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

Anil Kumar 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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events