getProjectIssuesSummary
getProjectIssuesSummarySummarize project issue counts by severity, type, status, rule, tag, and author to get a quick overview before diving into details.
Instructions
Count project issues and group them by severity, type, status, rule, tag, and SCM author. Returns the total and facet counts; use before listing details. Scope explicitly: omitting both branch and pullRequest uses the configured default (usually main). For non-main or PR work, pass the matching ref explicitly; discover it with listProjectBranches / listProjectPullRequests. If branchAdvisory is present, choose the branch matching the user's ref and retry explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | Comma-separated rule keys, e.g. `java:S1234`. | |
| types | No | Comma-separated: CODE_SMELL,BUG,VULNERABILITY. | |
| branch | No | Branch name; mutually exclusive with `pullRequest`. Omission uses the configured default (usually main). For non-main work, pass explicitly; use `listProjectBranches`. | |
| resolved | No | Resolved filter; defaults to false only when statuses is also omitted. | |
| statuses | No | Comma-separated: OPEN,CONFIRMED,REOPENED,RESOLVED,CLOSED. With no statuses/resolved, returns open issues. | |
| projectKey | No | Project key; omit only if the server has a default. Discover with `listProjects`. | |
| severities | No | Comma-separated: INFO,MINOR,MAJOR,CRITICAL,BLOCKER. | |
| pullRequest | No | PR key; mutually exclusive with `branch`; no default. For PR work, pass explicitly; use `listProjectPullRequests`. | |
| componentPathPrefix | No | Same Sonar `componentPath` prefix semantics as `listIssues`; use `listComponents` instead of guessing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byTag | No | Issues grouped by user-defined tag. | |
| total | No | Total number of issues matching the query. | |
| byRule | No | Issues grouped by rule key (top rules by issue count). | |
| byType | No | Issues grouped by type (BUG, VULNERABILITY, CODE_SMELL). | |
| byAuthor | No | Issues grouped by SCM author who introduced them (top authors by issue count). | |
| byStatus | No | Issues grouped by lifecycle status (OPEN, CONFIRMED, REOPENED, RESOLVED, CLOSED). | |
| bySeverity | No | Issues grouped by severity (BLOCKER, CRITICAL, MAJOR, MINOR, INFO). | |
| projectKey | No | Key of the project being summarised. | |
| branchAdvisory | No | ||
| pathPrefixTruncated | No | True when componentPathPrefix was supplied and the underlying scan hit the configured maximum issue count before exhausting Sonar. Totals/facets reflect only the scanned slice. |