Download an Issue Attachment
Use Case
Use the REST API to download an attachment of a specific issue.
Summary
To solve this task, you basically need to obtain a full download URl of a specific issue attachment. To do so:
Get a list of available attachments with their attributes.
Get the attachment by its returned URL.
Step-by-Step
Get the List of Issue Attachments
To get the list of issue attachments, send a GET request to the following endpoint:
To form a download URL for an attachment, make sure you specify the url
attribute in the fields
request parameters. To make the identification of the target attachment easier, add also the name
attribute at least.
For example:
Get Attachment
Now all we need to do is to follow the link that we've received in the url
attribute of the attachment and save the result as a file.
Make a request in the following format:
For example:
Note that the Authorization
header here is not required because the client is identified using the sign=
request parameter.