Is there a REST API Call to retrieve all comments on a project or repository?

I know about the following calls:

/rest-service/reviews-v1/{id}/comments
/rest-service/reviews-v1/{id}/comments/general

I was wondering if there was a way to retrieve all the comments (particularly defects) associated with a project or repository without having to specify the review's permaID. This way I can make one REST call and categorize all the returned data instead of a REST call for each review (which would spam the server with hundreds of requests!).

The Defect Metrics section shown when looking at a list of all the reviews for a particular project shows an aggregation of the data I need (pie charts of issues by severity, status, defect-type, and qualifier) but I don't know how to get this data programmatically for any project.

1 answer

0 vote
Nick Pellow Atlassian Team Aug 18, 2014

It doesn't look like any official REST API exists for what you want, however you can pull a list of all defects using the following page on your instance: cru/commentSearch .

Select the Defects checkbox, and you should get all Defects globally. Selecting the Project will limit the search to that project, etc.

I would be happy with an unofficial way to get the list shown on that commentSearch page programmatically. Reporting on defect metrics is quite difficult without this functionality. I would be happy to try anything to get the data out short of calling up that page and parsing the rendered HTML.

I agree with @Mena Samuel, this functionality would be very helpful for us.
After almost 2 years, had it been developed or not, @Nick Pellow? 

Thanks.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Stride

Get Started in Stride in 3 Easy Steps

Get started on Stride in 3 easy steps   If you’re new to Stride, welcome! We’re super excited to have you aboard. Stride is easy to use and set up, so don’t worry about reading tons of borin...

54 views 0 2
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