Getting issues from specific branch through api


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!


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

Sonarqube DeveloperEdition version 8.9.1