wit_update_work_items_batch
Update multiple Azure DevOps work items in batch using specified operations (Add, Replace, Remove) on fields, with support for HTML or Markdown formats. Ideal for managing bulk updates efficiently.
Instructions
Update work items in batch
Input Schema
Name | Required | Description | Default |
---|---|---|---|
updates | Yes | An array of updates to apply to work items. Each update should include the operation (op), work item ID (id), field path (path), and new value (value). |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"updates": {
"description": "An array of updates to apply to work items. Each update should include the operation (op), work item ID (id), field path (path), and new value (value).",
"items": {
"additionalProperties": false,
"properties": {
"format": {
"description": "The format of the field value. Only to be used for large text fields. e.g., 'Html', 'Markdown'. Optional, defaults to 'Html'.",
"enum": [
"Html",
"Markdown"
],
"type": "string"
},
"id": {
"description": "The ID of the work item to update.",
"type": "number"
},
"op": {
"default": "Add",
"description": "The operation to perform on the field.",
"enum": [
"Add",
"Replace",
"Remove"
],
"type": "string"
},
"path": {
"description": "The path of the field to update, e.g., '/fields/System.Title'.",
"type": "string"
},
"value": {
"description": "The new value for the field. This is required for 'add' and 'replace' operations, and should be omitted for 'remove' operations.",
"type": "string"
}
},
"required": [
"id",
"path",
"value"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"updates"
],
"type": "object"
}