How do I get all comments for an issue using REST api?

I am trying to get all the comments for an issue using the REST api. I can get all the other information by calling /rest/api/2/issue/{issueKey}.

This call responds with an object containing id, projectkey, description, summary, updatedDate, user etc. Everything I need, except comments. I know there are comments on that particular issue.

If I call /rest/api/2/issue/{issueKey}/comment I get response:

"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

If I do a JQL search using Advanced Searching, and export the result to Word, all the comments are in the exported document.

Is there a setting, or something else I'm missing?

2 answers

Hi,

FYI. I'm not sure but when I try  with the string is "/rest/api/2/issue/ABC-1/comment".

I have no issue with it.

 

/rest/api/2/issue/ABC-1/comment

works fine

is there any way to get the notifiers in the comments

which JIRA version do you use?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

8 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you