- Version used: SonarQube 7.9 LTS
- What I want to achieve: get a list of all the projects with Quality Gate status = “ERROR” on the last analysis
-
How I’ve done it using the Web API:
-
GET api/projects/search
to get a list of all the projects and then, for every project: GET api/qualitygates/project_status
-
Is there a better way to achieve my goal?
Can I somehow get the current Quality Gate status information for every project without having to loop every one of them?
Thanks to everyone that will answer me.