wit_link_work_item_to_pull_request
Link a specific work item to an existing pull request in Azure DevOps using project, repository, and work item IDs for streamlined tracking and collaboration.
Instructions
Link a single work item to an existing pull request.
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": {
"projectId": "<projectId>",
"repositoryId": "<repositoryId>",
"pullRequestId": "<pullRequestId>",
"workItemId": "<workItemId>"
},
"name": "wit_link_work_item_to_pull_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project ID of the Azure DevOps project (note: project name is not valid). | |
| pullRequestId | Yes | The ID of the pull request to link to. | |
| pullRequestProjectId | No | The project ID containing the pull request. If not provided, defaults to the work item's project ID (for same-project linking). | |
| repositoryId | Yes | The ID of the repository containing the pull request. Do not use the repository name here, use the ID instead. | |
| workItemId | Yes | The ID of the work item to link to the pull request. |