是否有任何 SonarCloud API 可以按严重性检索问题的历史趋势?

Is there any SonarCloud API that can retrieve historical trend of issue by severity?

我正在寻找 VulnerabilitiesBugsSecurity Hotspot 的 SonarCloud 历史趋势数据,严重程度仅为 BLOCKERCRITICAL

我使用了这个 API https://sonarcloud.io/api/issues/search?componentKeys={project_key}&types=BUG,VULNERABILITY,SECURITY_HOTSPOT&severities=CRITICAL,BLOCKER,它只显示了 BLOCKERCRITICAL 严重程度的最新问题。

我对这样的历史趋势更感兴趣 API https://sonarcloud.io/api/measures/search_history?metrics=critical_violations&from=2020-01-01&ps=100&component={project_key} 但这种违规行为包括 CODE_SMELLS 这是我不想追踪的。如果我交换 VulnerabilitiesBugsSecurity Hotspot 的指标,它不会显示严重性。

否,根据 SonarSourcer 的回应之一。没有API只能按严重程度搜索问题的历史趋势。

参考:https://community.sonarsource.com/t/is-there-an-api-to-retrieve-historical-trend-of-issue-by-certain-severity-only/31930