manage_work_item_link
Add, remove, or update links between work items in Azure DevOps to define relationships such as parent-child or related items.
Instructions
Add or remove links between work items
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": {
"sourceWorkItemId": "<sourceWorkItemId>",
"targetWorkItemId": "<targetWorkItemId>",
"operation": "<operation>",
"relationType": "<relationType>"
},
"name": "manage_work_item_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional comment explaining the link | |
| operation | Yes | The operation to perform on the link | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| relationType | Yes | The reference name of the relation type (e.g., "System.LinkTypes.Hierarchy-Forward") | |
| organizationId | No | The ID or name of the organization (Default: mycompany) | |
| newRelationType | No | The new relation type to use when updating a link | |
| sourceWorkItemId | Yes | The ID of the source work item | |
| targetWorkItemId | Yes | The ID of the target work item |