devops_work_item_artifact_link_update
Attach or detach artifact links (Pull Request, Build, Commit, Branch, Changeset, Versioned Item) to Azure DevOps work items.
Instructions
Add or remove an artifact link (Pull Request, Build, Commit, Branch, Changeset, Versioned Item) on a work item. Use op='add' (default) to attach, op='remove' to detach. The artifact_id format depends on link_type (see parameter doc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Operation to perform: 'add' (default) to attach the artifact link, 'remove' to detach it. | add |
| comment | No | Optional comment to attach to the link. Only used when op='add'. | |
| link_type | Yes | Supported: 'Pull Request', 'Build', 'Found in build', 'Integrated in build', 'Commit', 'Branch', 'Changeset', 'Versioned Item'. | |
| artifact_id | Yes | Artifact identifier — format depends on link_type: Git-based (Pull Request / Commit / Branch / Versioned Item): '{project_id}/{repo_id}/{detail}', where project_id and repo_id are GUIDs (use devops_repository_get to resolve names), and detail is the PR number, commit SHA, branch name, or file path respectively. Build / Found in build / Integrated in build: '{build_id}'. Changeset: '{changeset_id}'. | |
| work_item_id | Yes | The numeric ID of the work item to modify. | |
| validate_only | No | If True, validate without saving (dry run). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |