I found a way of using
PUT /rest/api/3/issue/{issueIdOrKey}/comment/{id}
Sample payload:
{
"body": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "This is a public comment"
}
]
}
]
},
"properties": [
{
"key": "sd.public.comment",
"value": {
"internal": true
}
}
]
}
def body = """{
"body": {
"type": "doc",
"version": 1,
"content": [{
"type": "paragraph",
"content": [{
"text": "examaple",
"type": "text"
}]}]},
"properties": [{
"key": "sd.public.comment",
"value": {
"internal": true
}}],
"visibility": {}}"""
put ("/rest/api/3/issue/{issueKey}/comment/{commendId}")
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.body(body)
.asJson()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.