Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Organization address (URL)StringYesOrganization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server.
Personal access tokenCredentialYesPersonal 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.
ProjectStringYesProject name, e.g. Finance Portal.
WiqlStringYesWIQL query. Only the ids it finds are used; choose columns with extra_fields.
Extra fieldsListNoMore field reference names to add as columns, e.g. ["Microsoft.VSTS.Common.Priority"].
Maximum resultsNumberNo1000Most items to return; pages are read until this many are found.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, type, title, state, assigned_to, changed_date, then any extra fields asked for.
idsListIds of the work items found.
countNumberNumber of work items returned.