Compare analysis from different days

I want to compare two SonarQube analysis results of the same branch from two different days.

I want to find out where the difference in Code Smells comes from. I hoped that Analysis would offer me a way to do this, but I don’t see any option for this.

Furthermore, I tried to load the different analysis results independently: new in browser tab 1, old in browser tab 2 - some kind of manual diff. But I was not able to access the old analysis result from the browser, only the latest one.

How can I do this?

I’m using SonarQube Community Edition v8.9.1.


Welcome to the community!

Sorry, but this functionality really isn’t available. You could look at the issues that were new on the 16th. That’s doable from the UI. But it won’t give you a full picture because you can’t find what issues were closed on the 16th.

Would you mind explaining what you’re trying to accomplish?


Hi Ann,

Thank you for your answer.

I’d really appreciate if you would guide me how I can take a look at older analysis results. I don’t expect many issues got closed - there’ll be probably almost new ones :innocent:

Regarding your last question: on the 16th, we merged a feature branch into our main - the Sonar analysis results are already cleaned up and deleted. A couple of days later, we saw the increase in code smells and now we’re curious which particular issues were added with the merged feature branch.


Hi mu88,

If you didn’t see the increase until a couple days later, it likely wasn’t caused by the merge.

Sorry, but you really can’t. Some metric values are saved, but you’re not going to be able to excavate a previous global issues state for the reasons I mentioned above.