Unable to get filtered results

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    7.91
  • what are you trying to achieve
    Creating a report for Goverance team on how many vulnerabilities are marked as Wontfix or False positive over a quarter
  • what have you tried so far to achieve this
    Tried to use API’s:
    https:///api/issues/search?s=FILE_LINE&resolved=true&severities=BLOCKER%2CCRITICAL%2CMAJOR&types=BUG%2CVULNERABILITY&ps=300&facets=severities%2CsonarsourceSecurity%2Ctypes&additionalFields=_all&status=resolved&resolution=wontfix

After running this query, it returns all results regardless of resolution status

Hi,

Welcome to the community!

Your best bet here is to get the results you want via the UI and use your browser’s developer tools to eavesdrop on the API call the UI uses to get that data.

 
HTH,
Ann

Thanks Ann!