Get Attachments of an Issue
GET /issue/{issue}/attachment
Get all issue attachments
GET /rest/issue/{issue}/attachment
Parameters:
Name | Type | Description |
---|---|---|
issue | issueById | ID of an issue to get attachments from. |
Response parameters:
Name | Description |
---|---|
URL | The URL of the attachment. |
name | Name of the attachment. |
authorLogin | Login name of the user who has added the attachment. |
group | Name of a group, to which this attachment is visible. |
created | Timestamp when the attachment was added (created) in YouTrack. Timestamp is the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this date. |
Sample
Request
GET https://example.com/youtrack/rest/issue/HBR-63/attachment
Connection: keep-alive
Cookie: $Version=0; JSESSIONID=n7hq7t8o49ae15sgbq5hn9ic; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=UTF-8
Content-Length: 175
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<fileUrls>
<fileUrl url="/_persistent/uploadFile.html?file=45-46&v=0&c=false" name="uploadFile.html"/>
</fileUrls>
Last modified: 16 March 2020