|
2 | 2 | title: Status and trend work item, query-based charts |
3 | 3 | titleSuffix: Azure DevOps |
4 | 4 | description: Learn how to add status, progress, and trend charts to dashboards from flat-list queries in Azure DevOps. |
5 | | -ms.custom: dashboards, copilot-scenario-highlight |
| 5 | +ms.custom: dashboards, copilot-scenario-highlight, awp-ai |
6 | 6 | ms.subservice: azure-devops-analytics |
7 | 7 | ms.assetid: EFAD32DB-8B19-4ACC-8F72-87CC5A513798 |
8 | 8 | ms.author: chcomley |
9 | 9 | author: chcomley |
10 | 10 | ms.topic: how-to |
11 | 11 | monikerRange: '<= azure-devops' |
12 | | -ms.date: 03/18/2026 |
| 12 | +ms.date: 03/23/2026 |
13 | 13 | ai-usage: ai-assisted |
14 | 14 | #customer intent: As an Azure Boards user, I want to create charts to track the status of work in progress. |
15 | 15 | --- |
@@ -40,7 +40,7 @@ Chart the results of a [flat-list query](../../boards/queries/using-queries.md#d |
40 | 40 |
|
41 | 41 | ## Create a flat-list query |
42 | 42 |
|
43 | | -Select the **Flat list of work items** query type — other query types aren't supported for charting. For more information, see [Define a flat-list query](../../boards/queries/using-queries.md#flat-list). |
| 43 | +Select the **Flat list of work items** query type. Other query types aren't supported for charting. For more information, see [Define a flat-list query](../../boards/queries/using-queries.md#flat-list). |
44 | 44 |
|
45 | 45 | Add any field you want to chart to a query clause or to column options: |
46 | 46 |
|
@@ -69,7 +69,7 @@ To add a chart to a dashboard, [save the query to a **Shared Queries** folder](. |
69 | 69 | |----------|---------| |
70 | 70 | | **Area / iteration grouping** | Only the leaf node of **Area Path** or **Iteration Path** appears. If your query mixes levels, group by **Node Name** instead. | |
71 | 71 | | **Sorting** | Sort by **Value** (numeric count or sum) or **Label** (grouping field name), in ascending or descending order. | |
72 | | -| **Series limit** | Charts show up to 8 series (12 on resized dashboard widgets). Extra values roll up into *(other)*. | |
| 72 | +| **Series limit** | Charts show up to eight series (12 on resized dashboard widgets). Extra values roll up into *(other)*. | |
73 | 73 |
|
74 | 74 | ## Create a query-based chart |
75 | 75 |
|
@@ -151,24 +151,30 @@ To add other chart types like test results or build summaries, see [Add widgets |
151 | 151 |
|
152 | 152 | ::: moniker range="azure-devops" |
153 | 153 |
|
| 154 | +<a id="use-ai-assistance"></a> |
| 155 | + |
154 | 156 | ## Use AI to build query-based charts |
155 | 157 |
|
156 | | -If you configure the [Azure DevOps MCP Server](/azure/devops/mcp-server/mcp-server-overview), you can use AI assistants to help create queries and charts for tracking work. |
| 158 | +If you configure the [Azure DevOps MCP Server](../../mcp-server/mcp-server-overview.md), you can use AI assistants to help create queries and charts for tracking work. |
157 | 159 |
|
158 | 160 | ### Example prompts |
159 | 161 |
|
160 | 162 | | Task | Example prompt | |
161 | 163 | |------|----------------| |
162 | | -| Build a query for charting | `Write a flat-list query that returns all active bugs grouped by priority in <Contoso> project` | |
| 164 | +| Build a query for charting | `Write a flat-list query that returns all active bugs grouped by priority in the <project-name> project` | |
163 | 165 | | Choose a chart type | `Should I use a pie chart, stacked bar, or pivot table to show bug distribution by area path?` | |
164 | | -| Track trends | `Help me create a trend chart that shows how bug counts change over the last 30 days in <Contoso> project` | |
165 | | -| Sum numeric fields | `How do I create a chart that shows total Story Points by team member in <Contoso> project?` | |
166 | | -| Group by custom field | `Help me create a stacked bar chart that groups work items by a custom "Release" field in <Contoso> project` | |
167 | | -| Compare sprints | `Create a pivot table that compares bug counts by state across the last three iteration paths in <Contoso> project` | |
| 166 | +| Track trends | `Help me create a trend chart that shows how bug counts change over the last 30 days in the <project-name> project` | |
| 167 | +| Sum numeric fields | `How do I create a chart that shows total Story Points by team member in the <project-name> project?` | |
| 168 | +| Group by custom field | `Help me create a stacked bar chart that groups work items by a custom "Release" field in the <project-name> project` | |
| 169 | +| Compare sprints | `Create a pivot table that compares bug counts by state across the last three iteration paths in the <project-name> project` | |
168 | 170 | | Spot workload imbalance | `Build a stacked bar chart showing active work items per team member, grouped by work item type, so I can see who's overloaded` | |
169 | | -| Track debt | `Write a query and trend chart that tracks unresolved bugs older than 30 days in <Contoso> project` | |
| 171 | +| Track debt | `Write a query and trend chart that tracks unresolved bugs older than 30 days in the <project-name> project` | |
170 | 172 | | Add chart to dashboard | `What's the best way to share a query-based chart with my team on a dashboard?` | |
171 | 173 |
|
| 174 | +> [!TIP] |
| 175 | +> If you're using Visual Studio Code, [agent mode](/visualstudio/ide/copilot-chat-context#agent-mode) is especially helpful for iterating on a flat-list query and then walking through the exact chart and dashboard steps for your project. |
| 176 | +> - To avoid using stale or cached data from previous queries, add to your prompt, `Do not use previously fetched data`. |
| 177 | +
|
172 | 178 | ::: moniker-end |
173 | 179 |
|
174 | 180 | ## Related articles |
|
0 commit comments