Hi All,
I am trying to add the comment to Issue using JIRA API with the below URL :
JiraServerUrl/api/3/issue/{IssueKey}/Comment (This is for Jira Cloud) But unable to add the same .. and getting "The remote server returned an error: (400) Bad Request"
when i try using this one JiraServerUrl/api/2/issue/{IssueKey}/Comment) - able to add the comment.
below Json request i am using in my code for both:
object json = new
{
body = "This is comment from JIRA API.."
};
Can anyone have an idea on the same? Pls suggest..
Hi @[deleted],
according to the documentation the request body looks different for Jira Cloud:
That's why you get error code 400 - Jira wasn't able to obtain comment text from your provided JSON.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.