Working with SonarQube version 9.9 LTS in our company, and we are trying to use the API GET api/issues/search to retrieve issues for both the master (main) and development branches across all components. I’ve encountered a specific issue regarding the development branch and I’m seeking your help to resolve it.
Currently, I’m successfully retrieving issues for the master branch, but the data I receive for the development branch is incorrect. To be more precise, I’m getting the same issues as I do for the master branch, which is not the expected behavior.
I conducted a test using the API for a specific project and found that the parameter “branch” of the API works correctly for both master and development branches. This adds to my confusion about the problem I’m facing.
Do you have any insights into what might be causing this issue? Any help or advice would be greatly appreciated.
Thank you in advance for your assistance.