Posting an Issue Comment through Rest API

edgar_polancogomez January 20, 2021

Im trying to post a comment issue through the JIRA Rest API v2 which was working fine before, but now it's not adding the comments anymore. However, I noticed I'm receiving now a `200 Response Code` which doesn't appear as a valid option in the documentation.

This is how I am trying to post the comment:
POST mydomain.atlassian.net/rest/api/2/issue/PLAYG-704/comment

and this is what Im getting https://clb.sh/552fd0

After doing tests on another ticket which had comments, it seems to me that it's behaving like if I am sending a GET request (which returns 200) instead of POST (which returns 201)

https://clb.sh/41c73a

Has anyone seen something similar?

 

Thanks in advance

 

1 answer

0 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 20, 2021

Hi @edgar_polancogomez ,

I've just tested it and it works for me. It is really strange you're getting code 200.

Have you tried to use API v3 instead of v2?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events