Add Comment
Adds a comment to an issue.
For Jira's documentation, see Add Comment (opens in a new tab).
Parameters:
Field | Description | Required |
---|---|---|
issueIdOrKey | The ID or key of the issue. | Yes |
body | The comment text in Atlassian Document Format. | Yes |
Example Output:
{
"id": "10000",
"self": "https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000",
"author": {
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=account-id",
"accountId": "account-id",
"displayName": "John Doe",
"active": true
},
"body": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "This is a comment."
}
]
}
]
},
"created": "2020-07-28T12:34:56.789+0000",
"updated": "2020-07-28T12:34:56.789+0000"
}