Tested with: SonarQube version 7.9.1 (build 27448) and sonarcloud.io.
Error observed: issues API does not return security hotspots when severity parameter is used.
Steps to reproduce:
- Open https://sonarcloud.io/api/issues/search?componentKeys=nl.ictu:quality-time&resolved=false&ps=500&types=SECURITY_HOTSPOT,CODE_SMELL
- Note that both the two code smells and the five security hotspots are returned
- Open https://sonarcloud.io/api/issues/search?componentKeys=nl.ictu:quality-time&resolved=false&ps=500&severities=INFO,MINOR,MAJOR,CRITICAL,BLOCKER&types=SECURITY_HOTSPOT,CODE_SMELL
- Note that the two code smells are returned, but not the security hotspots
Potential workaround: make multiple calls to the issues API to retrieve security hotspots and other issues separately.