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.
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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"projectId": {
"description": "The project ID of the Azure DevOps project (note: project name is not valid).",
"type": "string"
},
"pullRequestId": {
"description": "The ID of the pull request to link to.",
"type": "number"
},
"pullRequestProjectId": {
"description": "The project ID containing the pull request. If not provided, defaults to the work item's project ID (for same-project linking).",
"type": "string"
},
"repositoryId": {
"description": "The ID of the repository containing the pull request. Do not use the repository name here, use the ID instead.",
"type": "string"
},
"workItemId": {
"description": "The ID of the work item to link to the pull request.",
"type": "number"
}
},
"required": [
"projectId",
"repositoryId",
"pullRequestId",
"workItemId"
],
"type": "object"
}