SonarQube API is giving me weird object IDs (like "AYvdIXCb14cadZhy_3ge")- how to match them up?

I’m making a call to api/measures/component?component=MyApplication&metricKeys=quality_gate_details - where the component is an application (i.e. a collection of projects).

I get back a list of projects in the application, and which projects are failing/passing their quality gates (under component.measures[0].value). Which is great - it’s exactly what I need.

Except that the ID for each project is not the normal ID - it’s a bunch of semi-random keys. How do I translate something like AYIBRZTmQ_aBcdefFQCX back into the correct project?

I’m using Developer Edition - v9.9.6 (build 92038)

Hi,

Welcome to the community!

Would you mind posting a sample response, please? (Redaction shouldn’t be necessary since you’re not actually getting sensible project identifiers, right? :sweat_smile: )

 
Thx,
Ann

SonarQubeOddResponse.json (1.1 KB)
There you go - I hope that’s helpful! I’d love to know what’s going on.

Hi,

Thanks for the sample. It’s a nice illustration that the API probably isn’t returning what it should be. I’ll pass that on internally.

In the meantime, the answer to your question:

Uhm… I expected there to be an ID parameter in the projects search, but I’m not finding one. So… I’ll flag that too.

 
Ann

Thank you, I appreciate it!