YouTrack Standalone 2018.3 Help

Get Comments of an Issue

GET /issue/{issue}/comment

Get all issue comments

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

Request parameters:

Name

Type

Description

issue

issueById

ID of an issue to get comments for.

wikifyDescription

boolean

If comments text should be converted to html or not

Response parameters:

Name

Description

id

Comment id in database

author

Login of the user, who posted this comment

issueId

Id of the issue, that comment belongs to

deleted

True if comment was deleted from issue, false if not

jiraId

If this comment was initially imported from Jira, shows id of this comment in Jira.

text

Text of the comment

created

Time when this comment was created (Unix time format)

updated

Time when this comment was last updated (Unix time format)

Sample

Request

GET https://example.com/youtrack/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 <?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: 7 March 2019