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 an hour ago in United States

Topic Tuesday, now on Thursday! :-P

Happy Thursday everyone! This is usually a Tuesday thing but I've been crazy busy.  I finally had a moment to breath and so here we are. Atlassian has several tools and features to help users ...

6 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