wit_work_items_link
Batch link work items in Azure DevOps projects using specified relationships like parent, child, or related, with optional comments for context.
Instructions
Link work items together in batch.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project | Yes | The name or ID of the Azure DevOps project. | |
updates | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"project": {
"description": "The name or ID of the Azure DevOps project.",
"type": "string"
},
"updates": {
"items": {
"additionalProperties": false,
"properties": {
"comment": {
"description": "Optional comment to include with the link. This can be used to provide additional context for the link being created.",
"type": "string"
},
"id": {
"description": "The ID of the work item to update.",
"type": "number"
},
"linkToId": {
"description": "The ID of the work item to link to.",
"type": "number"
},
"type": {
"default": "related",
"description": "Type of link to create between the work items. Options include 'parent', 'child', 'duplicate', 'duplicate of', 'related', 'successor', 'predecessor', 'tested by', 'tests', 'affects', and 'affected by'. Defaults to 'related'.",
"enum": [
"parent",
"child",
"duplicate",
"duplicate of",
"related",
"successor",
"predecessor",
"tested by",
"tests",
"affects",
"affected by"
],
"type": "string"
}
},
"required": [
"id",
"linkToId"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"project",
"updates"
],
"type": "object"
}