Is there a way I can update Jira Service Desk comments to internal using the rest API?
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()
It looks like you're new here. Sign in or register to get started.