You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I know about the following calls:
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.
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.