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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.