getIssue
getIssueRetrieve a SonarQube issue by key with full details, changelog, and status/assignment history. Specify a branch or pull request to scope lookups beyond the default main branch.
Instructions
Get one issue by key. Returns full issue details and changelog, including status and assignment history. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"issueKey": "<issueKey>"
},
"name": "getIssue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | No | Branch name; mutually exclusive with `pullRequest`. Omission uses the configured default (usually main). For non-main lookup, pass explicitly; use `listProjectBranches` to discover names. | |
| issueKey | Yes | Issue key | |
| pullRequest | No | PR key; mutually exclusive with `branch`; no default. For PR work, pass explicitly; use `listProjectPullRequests`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue | No | ||
| changelog | No | Full change history of the issue (transitions, assignments, severity changes, etc.). |