ado_workitems_link
Link two Azure DevOps work items with a specified relationship type such as parent, child, related, predecessor, successor, or duplicate. Requires vso.work_write scope.
Instructions
Link two work items. Typical use: set a Feature as the parent of a Task so it shows nested on the board (linkType='parent', fromId=Task, toId=Feature). Can also create child, related, predecessor, successor, duplicate, and duplicate-of links. Requires vso.work_write PAT scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toId | Yes | The target work item the link points to | |
| fromId | Yes | The work item that gets the new relation | |
| comment | No | Optional comment stored on the relation | |
| project | No | Project scope (optional) | |
| linkType | Yes | Link kind from fromId's perspective. 'parent' makes toId the parent of fromId (drag under on the board). 'child' makes toId a child of fromId. Also: related, predecessor, successor, duplicate, duplicate-of. |