Update multiple work items
update_work_itemsBatch-update multiple TFS work items at once: change state, assignee, fields, tags, and comments with per-item results. Uses efficient batch API with fallback for reliable bulk edits.
Instructions
Apply the same update (state + assignedTo, optionally more fields/comment) to many work items. Uses the wit/$batch endpoint (one HTTP request per 200 items) and falls back to parallel single PATCH calls if $batch is unavailable. Per-item results are reported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Work item ids | |
| 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. | |
| validateOnly | No | Validate the update without saving. | |
| iterationPath | No | ||
| suppressNotifications | No | Do not fire notifications for this update. |