Data model for the Analytics Service


The Analytics service data model for Visual Studio Team Services (VSTS) consists of entity sets, whose members (entities) contains properties that can be filtered, aggregated, and summarized. Additionally, they contain navigation properties that relate entities to one other, providing access to additional properties for selecting, filtering, and grouping.


Feature availability: The Analytics Marketplace extension is available to all VSTS accounts. Installing it provides several advanced widgets, access to the OData feed and Power BI integration.

If you are looking for information about the Azure Analysis Services, see Azure Analysis Services.



Entity sets are described in OData metadata, and vary by VSTS project. A complete list of entity sets, entity types, and properties can be discovered by requesting the OData metadata for your project: https://{OrganizationName}{project}/_odata/{version}/$metadata

The data model contains the following entity sets:

EntitySet Description
Areas The work item area paths, with properties for grouping and filtering by area hierarchy
Iterations The work item iteration paths, with properties for grouping and filtering by iteration hierarchy
BoardLocations The Kanban board cell locations, as identified by board column, lane, and split - includes historic board settings
Dates The dates used to filter and group other entities using relationships
Projects All projects defined for the account or collection
Process Backlog information - used to expand or filter work items and work item types
Tags All work item tags for each project
Teams All teams defined for the project (To add a team, see Add teams)
Users User information - used to expand or filter various work item properties (e.g. Assigned To, Created By)
WorkItems The current state of work items
WorkItemLinks The links between work items (e.g. child, parent, related) - includes history of links - hyperlinks not included
WorkItemRevisions All historic work item revisions, including the current revision - does not include deleted work items
WorkItemSnapshot (Composite) The state of each work item on each calendar date - used for trend reporting
WorkItemBoardSnapshot (Composite) The state of each work item on each calendar date, including Kanban board location - used for trend reporting
WorkItemTypeFields The work item properties for each work item type and process - used for report building

Composite entities

Composite entities support specific scenarios. They are composed from simpler entities, often require more computing resources to generate, and may return larger result sets. To achieve the best performance and avoid unnecessary throttling, ensure that you query the correct entity for your scenario.

For example, WorkItemSnapshot combines WorkItemRevisions and Dates such that each date has one revision for each work item. This representation supports OData queries that focus on trend data for a filtered set of work items. However, you should not use this composite entity to query the current state of work items. Instead, you should use the WorkItems entity set to generate a more quick-running query.

Similarly, some entities may contain all historic values, while others may only contain current values. WorkItemRevision contains all work item history, which you should not use in scenarios where the current values are of interest.


To generate more complex query results, you can combine entities using relationships. You can employ relationships to expand, filter, or summarize data.

Some navigation properties result in a single entity, while others result in a collection of entities. The following diagram shows select entities and their navigation properties. For clarity, some composite entities and relationships have been omitted.

Analytics Service Data Model

Relationship keys

Entity relationships are also represented as foreign keys so that external tools can join entities. These properties have the suffix "SK", and are either integer or GUID data types. Date properties have corresponding integer date key properties with the following format: YYYYMMDD.

Entity Properties

The following table provides a partial list of the WorkItemRevision entity properties to illustrate some common details. The last three properties—CreatedDate, CreatedDateSK, CreatedOn—show that the same value is often expressed in multiple properties, each designed for different scenarios.

Property Type Description
WorkItemRevisionSK Int32 The VSTS Analytics unique key for the work item revision - used by external tools to join related entities.
WorkItemId Int32 The VSTS id for the work item.
Revision Int32 The revision of the work item.
Title String The work item title.
WorkItemType String The work item type (e.g. Bug, Task, User Story).
StoryPoints Double The points assigned to this work item - commonly aggregated as a sum.
Tags Navigation Navigation property to a Tag entity collection. Commonly used in $expand statements to access the Name property for multiple work item tags.
CreatedDate DateTimeOffset The date the work item was created, expressed in the time zone for the account. Commonly used for filtering and for display.
CreatedDateSK Int32 The date the work item was created, expressed as YYYYMMDD in the time zone for the account. Used by external tools to join related entities.
CreatedOn Navigation Navigation property to the Date entity for the date the work item was created, in the time zone for the account. Commonly used to reference properties from the Date entity in groupby statements.


Changes to custom work item fields will affect the shape of your data model and will affect all work item revisions. For instance, if you add a new field, queries on pre-existing revision data will reflect the presence of this field.