Is there an api endpoint to get all the fields here?
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.
Your question asks for both an API endpoint and WIQL. I can answer the API endpoint part of the question:
typeId in subsequent calls.referenceName in the next callname property should give you what you need.To get all fields irrespective of process, use https://dev.azure.com/{organization}/_apis/wit/fields