I have called the sonar cloud API calls to get the bugs and code smells severity list (Low, Medium, and high), but I am not getting the accurate values. Please suggest.
Confusingly, but not mistakenly, this is intentional behavior. The value of a facet are not changed by filters to that facet (this is why in the UI you still see the value for other severities when filtered to a specific severity). You should rely on the total returned in the API response.
As per your comments, we did not get accurate values like low, medium, and high from this API call, correct? If yes, please suggest any alternative options to get the severity values through API calls.
You should be getting accurate values (and I believe you are), however, if you filter to a specific impact severity, the impactSeverities facet will still display the count for all impact severities.
HI team , i have tried using impact severities for HIGH,MEDIUM- i am getting matched results - API and UI but for some cases there it is matching. Not consistent.
and for high also matching , why there is a mismatch for high , low , medium code smells from api value and UI( user interface)
NOTE: I have tried impactSeverities and severities both