SonarQube Issues Report Diff

Hi All,

I’m on SonarQube Enterprise 8.9.1 and I’ve recently been trying to understand the different options or possibilities around extracting issues or bugs generated in new code, and I have a question.

Is there a way to just generate a report of new issues that might be introduced in a new scan or analysis?

Analysis-1 : → 5 bugs
Analysis-2 : → 7 bugs.

Is there a way to somehow generate a report highlighting the 2 new bugs that have been introduced by Analysis-2 ?

At the moment, the API only gives a count or sum, but I’m looking to possibly get a bit more information or detail on what the bugs actually are.
Name, type, etc.

Is this possible natively or can it be somehow be accomplished via the API?

Thank you.


You might take a look at the createdAfter parameter to the issues/search API. If you run this right after an analysis and feed in a date/time just before(?) the analysis, you should get what you’re looking for.


P.S. Thanks for creating a new thread. :wink:

1 Like


Thanks a lot @ganncamp
You have been more than helpful.