updatePullRequestTask
Updates a pull request task's content or state, automatically fetching the task version on Data Center to handle optimistic concurrency.
Instructions
Update a task on a pull request (content, state). On Data Center, the task version is fetched automatically for optimistic concurrency.
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": {
"repoSlug": "<repoSlug>",
"pullRequestId": "<pullRequestId>",
"taskId": "<taskId>"
},
"name": "updatePullRequestTask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Updated task state (OPEN or RESOLVED) | |
| taskId | Yes | Task ID | |
| content | No | Updated task content | |
| repoSlug | Yes | Repository slug | |
| workspace | No | Bitbucket workspace name | |
| pullRequestId | Yes | Pull request ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Tool-specific result payload | |
| status | Yes | Whether the tool call succeeded | |
| message | Yes | Human-readable status message |