Reputation: 155
this seems like something that should be possible but I can't figure out how to make it happen. In my dashboard I would like a chart that shows the states of all the user stories that have a specific feature as the parent.
It seems like the chart only works on flat work item queries and I can't figure out a way to create a flat query that has all the stories with a specific parent.
Anyone know a good way to make this happen?
Upvotes: 2
Views: 2507
Reputation: 33698
You can custom widget by using extension and display result in a TreeView control.
Regarding widget extension, you can refer to: Add a dashboard widget
Other extension samples: vsts-extension-samples (widgets)
Upvotes: 1
Reputation: 577
As Marina stated the chart only supports flat queries.
But I would suggest another workaround: Use tags or a separate area to mark the work items under the feature and create a flat query based on those. That way you don't have to change the query when you add work items to the feature.
EDIT: You still have to set the tag/area manually to the story, when you add it to the feature.
Upvotes: 1
Reputation: 38096
Yes, chart can only created by Flat list of work items Type (not work items and direct links Type and Tree or work items Type).
So the work around is that you can query the user stories belong to a certain feature by Tree or work items Type, and then create a new query for the user stories you find in first step (such as query by ID, title etc).
Upvotes: 1