Update Comment
PUT {{baseUrl}}/rest/api/3/issue/:issueIdOrKey/comment/:id?expand=<string>
Updates a comment.
This operation can be accessed anonymously.
Permissions required:
- Browse projects project permission for the project that the issue containing the comment is in.
- If issue-level security is configured, issue-level security permission to view the issue.
- Edit all comments project permission to update any comment or Edit own comments to update comment created by the user.
- If the comment has visibility restrictions, the user belongs to the group or has the role visibility is restricted to.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | Use expand to include additional information about comments in the response. This parameter accepts renderedBody , which returns the comment body rendered in HTML. |
Request Body
{"visibility"=>{"type"=>"<string>", "value"=>"<string>"}, "properties"=>[{"key"=>"<string>"}, {"key"=>"<string>"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"self":"https://your-domain.atlassian.net/rest/api/3/issue/10010/comment/10000","id":"10000","author":{"self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g","accountId":"5b10a2844c20165700ede21g","displayName":"Mia Krystof","active":false},"body":{"type":"doc","version":1,"content":[{"type":"paragraph","content":[{"type":"text","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi egestas at posuere augue semper."}]}]},"updateAuthor":{"self":"https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g","accountId":"5b10a2844c20165700ede21g","displayName":"Mia Krystof","active":false},"created":"2020-12-17T01:45:40.265+0000","updated":"2020-12-17T01:45:40.265+0000","visibility":{"type":"role","value":"Administrators"}}