Is there an api to get the attachment using attachment url?

Prabhu Subramanian March 25, 2014

I am having an application. I want to read the attachment.

1 answer

0 votes
Boris Georgiev _Appfire_
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 25, 2014

What's is that application of yours ? Please give some more details. What is this url ?

One way to get it is using REST. The response contains download URL: https://docs.atlassian.com/software/jira/docs/api/REST/latest/#d2e2868

Prabhu Subramanian March 25, 2014

my application is GWT. But the rest api provides only the meta data of the attachment but i need the content of the attachment

Prabhu Subramanian March 25, 2014

Also CORS problem exists before using rest

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.
March 25, 2014

You can fetch the attachment over REST, as Boris has said. And it's no good saying "CORS problem exists" without telling us what you think CORS means or what the problem is.

Boris Georgiev _Appfire_
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 25, 2014

The metadata in the REST response contains content field:

And you can use this url to retrieve the contents.

 "content": "http://www.example.com/jira/attachments/10000"

Suggest an answer

Log in or Sign up to answer