Query work items (WIQL)
devops_work_item_query_by_wiqlRun a WIQL query to retrieve matching Azure DevOps work items with selected fields, filters, ordering, and an optional result limit for focused reporting and triage.
Instructions
Execute a WIQL (Work Item Query Language) query and return the matching work items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "devops_work_item_query_by_wiql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of results to return. Omit to use the server default. | |
| query | Yes | The WIQL query string. Example: "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.WorkItemType] = 'Bug' AND [System.State] <> 'Closed' ORDER BY [System.CreatedDate] DESC" | |
| time_precision | No | If True, use time precision for date comparisons in the query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |