Azure DevOps icon

Azure DevOps

Interact with the Azure DevOps REST API

Actions29

Work Item → Update

AI-generated

Summary

Update a specific Azure DevOps work item by specifying its ID and project, modifying its fields via UI inputs or a JSON patch array.

Inputs

  • Project Name or ID (required) — Select the Azure DevOps project containing the work item, either from a list or using an expression.
  • Work Item ID (required) — The identifier of the work item to update.
  • Fields Input Mode (required) — Choose whether to specify fields to update through the user interface or by providing a JSON patch document.
  • Fields (JSON) (required) — When 'JSON' mode is selected, provide an array of JSON patch operations with 'op', 'path', and 'value' to define field changes.
  • Fields (UI) (required) — When 'Fields UI' mode is selected, specify one or more field name-value pairs to update on the work item.

Output shape

A single updated work item object in JSON format.

The operation returns the updated work item. Errors are returned per item if 'Continue On Fail' is enabled.

Examples

Example 1: Update a work item using UI mode

Set the project and work item ID, select 'Fields UI' mode, then add one or more fields with their new values.

Example 2: Update a work item using JSON mode

Set the project and work item ID, select 'JSON' mode, and provide a JSON array of patch operations to modify fields.

Discussion