update_work_item
Update fields on an existing Azure DevOps work item using its URL or numeric ID. Provide a dict of field reference names and new values.
Instructions
Update fields on an existing work item, addressed by URL or ID.
Accepts a dict of field reference names to values (e.g.
{"System.State": "Closed", "System.IterationPath": "..."}).
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 whenever one is available — mutations in the wrong tenant are unrecoverable without manual intervention.
Args: work_item_url_or_id: A full Azure DevOps work-item URL or a numeric work-item ID. fields: Dict mapping field reference names to new values. working_directory: Optional path for repository-context resolution when using a numeric ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"work_item_url_or_id": "<work_item_url_or_id>",
"fields": "<fields>",
"working_directory": "<working_directory>"
},
"name": "update_work_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| work_item_url_or_id | Yes | ||
| fields | Yes | ||
| working_directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |