pythonc#azure-devopswiql

Azure DevOps get all process fields


Is there an api endpoint to get all the fields here?

Fields

I see that wiql only returns fields which have some value in them. Is there a wiql query for getting all the fields? There are like 60-70 of those.


Solution

  • Your question asks for both an API endpoint and WIQL. I can answer the API endpoint part of the question:

    1. https://dev.azure.com/{organization}/_apis/work/processes?api-version=6.0-preview.2 - will get you the list of processes - use the typeId in subsequent calls.
    2. https://dev.azure.com/{organization}/_apis/work/processes/{typeid}/workitemtypes?api-version=6.0-preview.2 - will get you the work item types for that process - use the referenceName in the next call
    3. https://dev.azure.com/{organization}/_apis/work/processes/{typeid}/workItemTypes/{referenceName}/fields?api-version=6.0-preview.2 will get you the list of fields - the name property should give you what you need.

    To get all fields irrespective of process, use https://dev.azure.com/{organization}/_apis/wit/fields