GET api/project_analyses/search not returning branches

Hi,

We’re using SonarQube Developer Edition version 7.9.1 and try to get details about analyses for reporting tools. We’re using the GET api/project_analyses/search REST API with project & category=VERSION.

However it does report analyses only for the main branch, and nothing for the other branches (long-lived or short-lived). I don’t see any parameter in api/project_analyses/search allowing to filter on branch names.

Thanks for any help,
Damien Coraboeuf

It seems we can add the branch parameter and then it’s returning the analyses for this branch, but it’s not documented:

Hi,

it’s because the branch parameter is internal

Gilbert

1 Like

Good to know ! Thanks for the feedback.

I hope the branch parameter makes it in the LTS parameters because it’s very useful…

1 Like