rishad-mj
(Rishad Mj)
November 15, 2021, 4:44am
1
Sonarqube DeveloperEdition version 8.9.1
Im 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://sonarqubeserver.com/api/issues/search?resolved=false&types=BUG&branch=SonarQube_Analysis_5.10.0.2 ]
Tried Options posted in the Sonar community but nothing seems to be working out for me.
Any help is much appreciated. Thanks
Cameron
(Cameron)
November 16, 2021, 12:50pm
3
Hi @rishad-mj ,
A branch is always associated with a project, so you should expect to add a componentKeys
parameter to your search to specify which project you’re interested in. So you’ll end up with something like:
https://sonarqubeserver.com/api/issues/search?componentKeys=myprojeckeyt&resolved=false&types=BUG&branch=SonarQube_Analysis_5.10.0.2
Can you try this and let me know how you go?
Regards,
Cameron.
system
(system)
Closed
December 6, 2021, 7:58am
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.