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

which JIRA version do you use?

Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

144 views 2 6
Read article

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