WebAPI api/issues + pullRequest does not work

While trying to download issues and create a report for a dedicated PR I ran into the following issue:

  • Versions used:
    • Data Center Edition Version 8.9.1 (build 44547)
    • analyzer
    • ALM used: GitHub Enterprise Server 3.1.14
  • Error observed
    • Request returns all issues, not only the ones from the PR
  • Steps to reproduce
    • curl -u <LOGIN_TOKEN>: https://<SONAR_URL>/api/issues/search?pullRequest=<PR_NUMBER>
  • Potential workaround
    • none found so far … also specifying the branch did not help

Hey there.

You will also need to specify componentKeys with the key of your project. For example:


1 Like

Thanks @Colin ! That fixed it … would be nice, if the docs mention this :wink:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.