Query work items (WIQL)
Find work items with a WIQL query and return their main fields as a table.
Command in the Azure DevOps toolkit · id ooa.azure_devops/query_work_items · 6 inputs (4 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Organization address (URL) | String | Yes | Organization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server. | |
| Personal access token | Credential | Yes | Personal access token from the vault, with the scopes this action needs (e.g. Work Items read and write); a Microsoft Entra ID token works too. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Project | String | Yes | Project name, e.g. Finance Portal. | |
| Wiql | String | Yes | WIQL query. Only the ids it finds are used; choose columns with extra_fields. | |
| Extra fields | List | No | More field reference names to add as columns, e.g. ["Microsoft.VSTS.Common.Priority"]. | |
| Maximum results | Number | No | 1000 | Most items to return; pages are read until this many are found. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: id, type, title, state, assigned_to, changed_date, then any extra fields asked for. |
| ids | List | Ids of the work items found. |
| count | Number | Number of work items returned. |