YouTrack Standalone 7.0 Help

Get Attachments of an Issue

GET /issue/{issue}/attachment

Get all issue attachments

GET /rest/issue/{issue}/attachment

Parameters:

NameTypeDescription
issueissueByIdID of an issue to get attachments from.

Response parameters:

NameDescription
URLThe URL of the attachment.
nameName of the attachment.
authorLoginLogin name of the user who has added the attachment.
groupName of a user group, to which this attachment is visible.
createdTimestamp 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 http://localhost:8081/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 Server: Jetty(6.1.23) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <fileUrls> <fileUrl url="/_persistent/uploadFile.html?file=45-46&amp;v=0&amp;c=false" name="uploadFile.html"/> </fileUrls>
Last modified: 2 February 2017