wit_update_work_item
Modifies specific fields of a work item in Azure DevOps using its ID. Supports add, replace, and remove operations for field updates via PAT authentication.
Instructions
Update a work item by ID with specified fields.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | Yes | The ID of the work item to update. | |
updates | Yes | An array of field updates to apply to the work item. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "The ID of the work item to update.",
"type": "number"
},
"updates": {
"description": "An array of field updates to apply to the work item.",
"items": {
"additionalProperties": false,
"properties": {
"op": {
"allOf": [
{
"type": "string"
},
{
"enum": [
"add",
"replace",
"remove"
],
"type": "string"
}
],
"default": "add",
"description": "The operation to perform on the field."
},
"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": [
"path",
"value"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"id",
"updates"
],
"type": "object"
}