clone_work_item
Clone an Azure DevOps work item into a new item of the same type, copying all fields and preserving parent links. Override fields as needed.
Instructions
Clone a work item into a new item of the same type, addressed by URL or ID.
Copies all fields from the source, applies optional overrides, and preserves the parent link. Does not close the source.
Caveat — work board ≠ code repo: passing a bare numeric ID resolves the org/project from the cached repository context, which can land on the wrong organization when the work board lives in a different tenant than any of the discovered code repos. Prefer passing a full work-item URL — clones created in the wrong tenant are unrecoverable without manual cleanup.
Args: source_work_item_url_or_id: A full Azure DevOps work-item URL or a numeric work-item ID for the source. field_overrides: Optional dict of fields to override in the clone. working_directory: Optional path for repository-context resolution when using a numeric ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_work_item_url_or_id | Yes | ||
| field_overrides | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |