wit_get_work_item
Retrieve a specific work item by ID from Azure DevOps with optional field selection, historical state, or expanded relations using PAT authentication.
Instructions
Get a single work item by ID.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
asOf | No | Optional date string to retrieve the work item as of a specific time. If not provided, the current state will be returned. | |
expand | No | Expand options include 'all', 'fields', 'links', 'none', and 'relations'. Relations can be used to get child workitems. Defaults to 'none'. | |
fields | No | Optional list of fields to include in the response. If not provided, all fields will be returned. | |
id | Yes | The ID of the work item to retrieve. | |
project | Yes | The name or ID of the Azure DevOps project. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"asOf": {
"description": "Optional date string to retrieve the work item as of a specific time. If not provided, the current state will be returned.",
"format": "date-time",
"type": "string"
},
"expand": {
"description": "Expand options include 'all', 'fields', 'links', 'none', and 'relations'. Relations can be used to get child workitems. Defaults to 'none'.",
"enum": [
"all",
"fields",
"links",
"none",
"relations"
],
"type": "string"
},
"fields": {
"description": "Optional list of fields to include in the response. If not provided, all fields will be returned.",
"items": {
"type": "string"
},
"type": "array"
},
"id": {
"description": "The ID of the work item to retrieve.",
"type": "number"
},
"project": {
"description": "The name or ID of the Azure DevOps project.",
"type": "string"
}
},
"required": [
"id",
"project"
],
"type": "object"
}