Azure-devops-docs: What are the "tables" available and how do you join them?

Created on 16 Feb 2020  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

Most of these examples use [Workitems] but there is also a [WorkItemLinks]. What other tables are available?

Also I think I was able to join these two tables/sets several years ago but I dont remember if thats true, and if so, how I did it. Is this possible to query for workitems and use filter criteria for both sets at the same time?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-agiltech devopprod doc-bug

Most helpful comment

@jeroenhabets - The Queries editor and WIQL syntax don't really work with the concept of Joining tables. The data warehouse tables are documented here for the SQL Reporting purposes: https://docs.microsoft.com/en-us/azure/devops/report/sql-reports/work-item-history-tables?view=azure-devops-2019.

If you have more advanced query needs, you might consider using the Analytics service which is the new reporting data service implemented for Azure DevOps 2019 and Azure DevOps Services. The data model is documented here: {Data model](https://docs.microsoft.com/en-us/azure/devops/report/extend-analytics/data-model-analytics-service). I believe you can retrieve the data you are looking for using Power BI and either an Analytics view or OData query.

All 4 comments

Or even just answerring: Can you join [Workitems] and [WorkItemLinks].
Use-case: need to retrieve _diverse_ but small list of Features including the ID of the Parent Epic.

@jeroenhabets - The Queries editor and WIQL syntax don't really work with the concept of Joining tables. The data warehouse tables are documented here for the SQL Reporting purposes: https://docs.microsoft.com/en-us/azure/devops/report/sql-reports/work-item-history-tables?view=azure-devops-2019.

If you have more advanced query needs, you might consider using the Analytics service which is the new reporting data service implemented for Azure DevOps 2019 and Azure DevOps Services. The data model is documented here: {Data model](https://docs.microsoft.com/en-us/azure/devops/report/extend-analytics/data-model-analytics-service). I believe you can retrieve the data you are looking for using Power BI and either an Analytics view or OData query.

@KathrynEE - what about my question(s)?

@StingyJack - Apologies for not addressing your question. The data warehouse tables pertaining to work items are:

You can't join tables via a query. The query editor provides support for querying based on link relationships. Within that query, you can specify clauses to filter based on the linked work items. So in that sense, yes, you can use filter criteria for both sets.

Also I think I was able to join these two tables/sets several years ago but I dont remember if thats true, and if so, how I did it. Is this possible to query for workitems and use filter criteria for both sets at the same time?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dannyvv picture dannyvv  Â·  3Comments

dtamai picture dtamai  Â·  3Comments

o-o00o-o picture o-o00o-o  Â·  3Comments

cijujoseph picture cijujoseph  Â·  3Comments

csutorasr picture csutorasr  Â·  3Comments