POST /rest/api/2/issue/{issueIdOrKey}/comment?expand
为问题添加新评论。
请求查询参数
参数值说明
扩展字符串可选标志:renderBody(提供以 HTML 呈现的正文)
可接受的请求表示:application/json
Example
{
"body": "Lorem ipsum dolor sit amet....",
"visibility": {
"type": "role",
"value": "Administrators"
}
}
可用的响应表示:
201
Example
{
"self": "http://www.example.com/jira/rest/api/2/issue/10010/comment/10000",
"id": "10000",
"author": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"displayName": "Fred F. User",
"active": false
},
"body": "Lorem ipsum dolor sit amet...",
"updateAuthor": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"displayName": "Fred F. User",
"active": false
},
"created": "2015-06-23T08:28:32.838+0000",
"updated": "2015-06-23T08:28:32.838+0000",
"visibility": {
"type": "role",
"value": "Administrators"
}
}
Returned if add was successful
400
Returned if the input is invalid (e.g. missing required fields, invalid values, and so forth).