Run saved query
run_queryExecute a saved TFS/Azure DevOps query by GUID or path to retrieve matching work items, and refine results with an additional WIQL filter.
Instructions
Execute a saved query by GUID or path and return the matching work items. Optionally append a custom WIQL filter (extraWhere, passed as-is and AND-ed with the query's WHERE clause), e.g. "[System.State] = 'Active' AND [System.Tags] CONTAINS 'hotfix'".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max number of work items to materialise. | |
| fields | No | Fields to return per work item. Defaults to the query's columns. | |
| format | No | How to return rich-text fields (Description, Repro Steps, comments): converted to plain text/markdown, or raw HTML. | text |
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. | |
| queryId | Yes | Query GUID or full path. | |
| extraWhere | No | Additional WIQL condition, AND-ed with the saved query's WHERE clause. |