Update work item
update_work_itemUpdate work item metadata via JSON Patch: set state, assignee, fields, tags, comments, and more. Returns the updated work item.
Instructions
Update a work item's metadata via JSON Patch. state and assignedTo are mandatory; other fields are optional. Returns the updated work item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Work item id | |
| tags | No | Replaces System.Tags. Empty array clears tags. | |
| state | Yes | New System.State value (e.g. 'Active', 'Resolved', 'Closed'). Required. | |
| title | No | ||
| fields | No | Additional fields by reference name, e.g. {"Microsoft.VSTS.Scheduling.RemainingWork": 4}. Use null to clear a field. | |
| reason | No | System.Reason (some state transitions require a specific reason). | |
| comment | No | Discussion comment added together with the update (System.History). | |
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. | |
| areaPath | No | ||
| priority | No | Microsoft.VSTS.Common.Priority | |
| assignedTo | Yes | New System.AssignedTo value: display name, 'DOMAIN\\user', e-mail, or 'Display Name <DOMAIN\\user>'. Use an empty string to unassign. Required. Use get_current_identity to obtain a value for the PAT owner. | |
| bypassRules | No | Bypass work item type rules (requires project collection admin rights). | |
| description | No | System.Description; plain text is converted to HTML. | |
| expectedRev | No | Optimistic concurrency: fail if the current revision differs. | |
| validateOnly | No | Validate the update without saving. | |
| iterationPath | No | ||
| suppressNotifications | No | Do not fire notifications for this update. |