YouTrack Standalone 2017.1 Help

Get Comments of an Issue

GET /issue/{issue}/comment

Get all issue comments

GET /rest/issue/{issue}/comment&{wikifyDescription}

Request parameters:

NameTypeDescription
issueissueByIdID of an issue to get comments for.
wikifyDescriptionbooleanIf comments text should be converted to html or not

Response parameters:

NameDescription
idComment id in database
authorLogin of the user, who posted this comment
issueIdId of the issue, that comment belongs to
deletedTrue if comment was deleted from issue, false if not
jiraIdIf this comment was initially imported from JIRA, shows id of this comment in JIRA.
textText of the comment
createdTime when this comment was created (Unix time format)
updatedTime when this comment was last updated (Unix time format)

Sample

Request

GET http://localhost:8081/rest/issue/HBR-63/comment Cookie: $Version=0; JSESSIONID=mk665rg7fe03cd1ma539knqg; $Path=/; jetbrains.charisma.main.security.PRINCIPAL=MTVhMjY2OGUxMTUxMTI5MGMzNjhlZWM5NTJiNGJkNmIyNzc3NjdjZmM3YWU4MTVjYzQwYWE1MWZlYTkwNTcxNzphcHBfZXhjZXB0aW9u; $Path=/

Response

HTTP/1.1 200 OK Content-Type: application/xml;charset=UTF-8 Content-Length: 416 Server: Jetty(7.2.0.v20101020) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <comments> <comment id="42-306" author="root" issueId="HBR-63" deleted="false" text="comment 1!" shownForIssueAuthor="false" created="1267030230127"> <replies/> </comment> <comment id="42-307" author="root" issueId="HBR-63" deleted="false" text="comment 2?" shownForIssueAuthor="false" created="1267030238721" updated="1267030230127"> <replies/> </comment> </comments>
Last modified: 18 April 2017