It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

is there any way get comment based on particular period like "only last 4 days" using rest API or other library. 

Like Matan Ben Moshe likes this

which JIRA version do you use?

Suggest an answer

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

Welcome new members!

Wow, I got swamped and now that I've finally gotten my head back above water, I find we have several new members! Welcome @Darren Keith lowman , @Amanda Babb , @Luis Zapata , @Joli Holmes , and @bh...

26 views 0 2
View post

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you