I am getting this error {"errorMessages":[],"errors":{"comment":"no comment id specified."}} when I try to update a comment.
This is the code:
'{"update":{
"comment": [{"edit": {"body": "Adding comment through API"}}]
}}'
My questio is how do I get a the comment's id and how do I put the comment id in the code to update the comment?
You might want to grab a list of comments of an issue by using the GET method for /rest/api/2/issue/{issueIdOrKey}/comment. See this. This will return the IDs of the comment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.