devops_work_item_link_update
Add or remove a relation link between two Azure DevOps work items. Supports link types such as parent, child, related, and more.
Instructions
Add or remove a relation link between two work items. Use op='add' (default) to create a new link, op='remove' to delete an existing one. To change a link type, call remove then add.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_item_id | Yes | The numeric ID of the work item to modify. | |
| link_to_id | Yes | The numeric ID of the work item to link to or unlink from. | |
| op | No | Operation to perform: 'add' (default) to create the link, 'remove' to delete it. | add |
| link_type | No | Type of link. One of: 'parent', 'child', 'related', 'duplicate', 'duplicate of', 'successor', 'predecessor', 'tested by', 'tests', 'affects', 'affected by'. Defaults to 'related'. | related |
| comment | No | Optional comment to attach to the link. Only used when op='add'. | |
| validate_only | No | If True, validate without saving (dry run). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |