Getting issues from specific branch through api

Hi,

I am trying to

get all the issues with respect to specific branch only

(not issues from master and other branchs) and when i am calling the api ( http://localhost:9000/api/issues/search?branch=dev&id=typescript%3Atypescript&resolved=false) it is giving the issues from master branch as well and that’s weird as i have already specified search?branch=dev.
Can anyone help please?
Thanks in advance!

Hi,

It seems like i was passing the parameters in wrong way but while trying this way i got the issues and it might help someone so here is the link http://localhost:9000/api/issues/search?componentKeys=typescript:typescript&resolved=false&branch=dev.

1 Like

Hi, even I’m facing the same issue. Trying to fetch issues with respect to Specific branch . But it always giving me the issue count from the Master branch.
Below is the API

https://sonarserver.com/api/issues/search?resolved=false&types=BUG&branch=SonarQube_Analysis_5.10.0.2

Sonarqube DeveloperEdition version 8.9.1