I want to update an existing comment. The below example works for making a NEW comment.
curl -u $AUTH_USR:$AUTH_PSW -X POST -H "Content-Type: application/json" --data "{ \\"body\\":\\"jenkins: ${COMMENT} -build ${BUILD_NUMBER}\\" }" $SERVER/rest/api/latest/issue/${TICKET_ID}/comment
I tried the below code for updating an EXISTING comment but getting 405 response:
curl -u $AUTH_USR:$AUTH_PSW -X PUT -H "Content-Type: application/json" --data "{ \\"body\\":\\"jenkins: updated! -build ${BUILD_NUMBER}\\" }" http://jira-hur-spm.fyre.ibm.com:8080/rest/api/3/issue/${TICKET_ID}/comment/1
As you can see I am using "1" for the comment ID as in 'comment number 1'. But this might be completely wrong - I actually cannot find docs on how to get a comment ID or what kind of format they are in.
If anyone can help - thank you!