Hi All ,
I have been working and searching for an answer more than 2 weeks , can you anybody help me how to add comments in JIRA using rest api , i used post man client to make both PUT and POST and also curl but there is always an error and my comment is not added to that issue.
HTTP Method - POST
curl -D- -u r****t:p***L. -X POST --data {"body":"this is a comment."} -H "Content-Type: application/json" http://h**y.l***lak.com/rest/api/2/issue/IPS-183/comment
HTTP Method - PUT
curl -D- -u r****t:p***L. -X PUT --data {"body":"this is a comment."} -H "Content-Type: application/json" http://h**y.l***lak.com/rest/api/2/issue/IPS-183/comment
i tried to send the text and also attach file but i could not complete the request , i used -K for authentication on my mac as well for cUrl but of not use. please let me know as this a critical issue for my project .