Where did the "fixed issues" go from SonarCloud's dashboard?

In previous versions of SonarCloud and SonarQube you could see the progress of PRs and branches and what problems they’ve “fixed”. Somehow this is no longer visible on a few projects I’m working on. For example I have a short-lived branch fixing a java:S2245 violation in main in a couple of classes. However this information is nowhere to be found in the dashboard:

I was expecting the branch summary page to look more like the screenshot below with details of how many bugs/vulnerabilities/code coverage were fixed or introduced.

Here’s our configuration:

// build.gradle.kts

sonarqube {
    properties {

        property("sonar.host.url", "https://sonarcloud.io")
        property("sonar.projectKey", "XYZ")
        property("sonar.organization", "XYZ")
        property("sonar.token", project.findProperty("sonar.token") as? String ?:
                                System.getenv("SONAR_PROJECT_TOKEN") ?:
                                providers.gradleProperty("sonar.token").orElse(""))

        property("sonar.sourceEncoding", "UTF-8")
        property("sonar.java.source", java.targetCompatibility)
        property("sonar.java.target", java.targetCompatibility)
        property("sonar.language", "java")
        property("sonar.java.coveragePlugin", "jacoco")
        property("sonar.coverage.jacoco.xmlReportPaths", "**/build/reports/jacoco/test/jacocoTestReport.xml")
        property("sonar.junit.reportsPath", "**/build/reports/tests/test/xml/**")
        property("sonar.dynamicAnalysis", "reuse")
        property("sonar.exclusions", arrayListOf("src/main/test/**/*"))

        val gitRef = System.getenv("GITHUB_REF") // refs/pull/5/merge
        val gitRefName = System.getenv("GITHUB_REF_NAME") // 5/merge
        val gitSourceRef = System.getenv("GITHUB_HEAD_REF") // feature-branch-name
        val gitTargetRef = System.getenv("GITHUB_BASE_REF") // main
        val isPullRequest = gitRef?.startsWith("refs/pull") ?: false

        if(isPullRequest)
        {
            // https://docs.sonarsource.com/sonarqube/9.8/analyzing-source-code/pull-request-analysis/
            property("sonar.pullrequest.key", gitRefName.substringBefore("/merge"))
            property("sonar.pullrequest.branch", gitSourceRef)
            property("sonar.pullrequest.base", gitTargetRef)
        }
        else
        {
            // Regular Branch Setup
            val branch = gitRefName ?: ("local-developer-scan-" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd-HHmmss")))
            property("sonar.branch.name", branch)
            property("sonar.branch.target", "main")
        }

    }
}

Is there an additional property or dashboard configuration?
What am I missing here?

Hey there!

This issue has never been available on SonarCloud, and only just came available with SonarQube in the last release, v10.4.

You can vote for this SonarCloud roadmap item here.

What has changed on the PR dashboard is the deprecation of issue types in favor a single “Issues” metric.

ntroducing-clean-code-in-our-products/98431

Keep in mind this screenshot is only showing open issues. To see fixed issues, you’d have to go to the Issues tab and filter for fixed issues.

Thanks for your reply Colin!

I am pretty sure there used to be some statistics similar to what’s seen on the main branch in previous versions that showed this information in the summary page. Mind you I’ve used SonarQube 6,7,8 but have not used the latest versions that much so things have obviously changed.

Keep in mind this screenshot is only showing open issues. To see fixed issues, you’d have to go to the Issues tab and filter for fixed issues.

I’ve tried that as well, but all of the filters are at zero, even though I’ve purposefully introduced a new issue:

Just a note - this is a scan on a short-lived branch.