Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Trying to fetch attachment using REST API from JIRA is not working

I am trying to fetch attachment from JIRA using REST API(provide by Jira). But I am not getting the metadeta of attachment and it is giving me only a URL which is also secured. can anyone please help how to get attachment from Jira using REST API?

2 answers

Atlassian introduced an experimental endpoint to read attachments.

GET /rest/api/3/attachment/content/{id}

0 votes

Hello @RishabhT,

Thank you for reaching out to Atlassian Community!

Just to make sure we are on the same page, I would like to confirm if you are using the API mentioned on the documentation below:

curl --request GET \
  --url '{id}' \
  --user '' \
  --header 'Accept: application/json'

If that's the case, I tested here and it shows the correct response. 

Would mind sharing with us a screenshot of the response you receive?


Hi Angelich,

Jira does not provide directly the content of the attachment but the secure URLs of the attachments.

Here my colleague @RishabhT  is concerned with the contents of the attachment.

The createmeta request working fine but returning only URLs perhaps we need file actual content in the form of base64/blob of the attachment.


So, Is there a way to fetch the content of the attachment ?


We are getting following response currently.

attachment response.png

Hello @Merajul Hasan,

Thank you for the details.

I'm afraid this is not possible using API. Blob is recorded in the database which can't be accessed in Jira Cloud. 

The only APIs available are the ones from the documentation and none of them returns what you need.

Also, I didn't find any feature request suggesting this ability, so please, feel free to raise one on (project JRACLOUD) adding more details about why this feature is important for your environment.


Hi @Angélica Luz 

Is it still not possible? 

I am also looking for the same, using content URI, I would like to get contents so we can insert that attachment in our system. 

@RishabhT and @Merajul Hasan  Did you find the solution or workaround? Please share. 

Unfortunately, there is no solution , u cud not get the content of attachment

Hi @Suraj Rajoria,

Thanks for reaching out to Community!

It's still not possible to get the content of an attachment.

As mentioned in my previous reply, Blob is recorded in the database which can't be accessed in Jira Cloud since it's a restricted function.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,970 views 37 49
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you