I like to retrieve issue information from our sonarqube instance via the web api, namely, what issues have been resolved and what issues have been created newly.
Is it correct to use the api/issues
method for this ? Does this involve all types (bug / vulnerabilities / code smells) ?
For finding newly created issues, I assume to use the parameter createdInLast
(with e.g. 1d
) or createdAfter
- is this correct ? And in addition to this the status is OPEN
(or is it enough to ask for resolved = false
) ?
For finding out the resolved issues, it seems to be now api method available to filter those on a specific update date, right ?
So to figure out the resolved issues since the last call, I need to save the time the last call was made and filter the found issues myself ?
In general, I like to create a system, that runs after a new sonarqube analysis and reports all new issues and fixed issues since the last run.