I've build up a hierarchical structure of all my work items with excel - all my work items are now organized in multiple levels.
User Story 1
|-- Task 1
| -- -- Sub Task 1
| -- -- -- Bug 1
| -- -- Sub Task 2
| -- -- -- Bug 2
| -- -- -- Sub Sub Task 3
| -- -- -- -- Bug 4
...
But how can I access all items under a certain work item (e.g., "All under Task 1") and visualize the results in a somehow hierarchical way?
Is this possible with TFS 2010 and VST 2010? Or do I need some third-party tools to get e.g., "All my Bugs for Sub Task 2" or "All Tasks for User Story 1"?
Thank you
Konrad
In general you need to construct Work Item Queries in VS that have "Type of Query" equal to "Tree of Work Items".
To obtain a list of Bugs for Sub Task 2:
New Query of type "Tree of work items" with Work Item = Sub Task 2 & linked work items Type = Bug
To obtain a list of Tasks under UStory 1:
New Query of type "Tree of work items" with Work Item = User Story 1 & linked work items Type = Task
For an external tool:
See here for a nice codeplex-solution that generates DGML - trees of Work Items.
Related
I have a Tree of Work Items query in TFS 2013 which show us all closed requirements with not closed or not ready bugs, requirements, tasks, test cases or reviews, i.e. not correct requirements. I have result like this:
|-- Requirement 1
|-- Requirement 2
|-- Requirement 3
|-- -- Task 1 (state = 'Closed')
|-- -- -- Bug 1(state = 'Proposed')
|-- Requirement 4
...
So i see requirement 3 which have task 1 with proposed bug 1. How can I modify my query to see only requirement 3 without another requirements? It can be not only Tree of Work Items.
Just try checking if Related Link Count field can work for you.
Check the screenshot below, choose Match linked work item first:
I need to query that hierarchical structure:
Feature 1
Feature 2
PBI 1 - Title A
PBI 2 - Title X
Feature 3
PBI 2
I want to get Feature 1 and under Feature 1 I check its child items by child item title and also I want to get this child item's items due to their title. Is it possible to write something like that? Basically I need a recursive query down to up.WorkItem.Title='something' and WorkItem.Parent.Title='something'.
SELECT * FROM WorkItemLinks
WHERE ([Source].[System.TeamProject] = #project
AND [Source].[System.WorkItemType] In('Feature','Product Backlog Item')
AND [Source].[System.State] <> ''
AND [Source].[System.Title] = 'Feature1')
AND ([System.Links.LinkType] = 'System.LinkTypes.Hierarchy-Forward')
AND ( [Target].[System.State] = 'New'
AND [Target].[System.WorkItemType] In('Feature','Product Backlog Item')
AND ( [Target].[System.Title] = 'Title A' or **[Target].[System.Title].Parent='Feature2'
Yes, you can use Tree Query to achieve this.
A easy way to do this is creating the query directly in the web portal. A simple example like following:
And you can check the WIQL code for the query via Rest API if you want to use it:
Update:
You can add a filter in "Filters for linked work items" and use "Or" for the two filters as following if you want "Workitem.Title=PB1 or WorkItem.Parent.Title =Feature":
If I have an object that has_many - how would I go about getting back only the results that are related to the original results related ids?
Example:
tier_tbl
| id | name
1 low
2 med
3 high
randomdata_tbl
| id | tier_id | name
1 1 xxx
2 1 yyy
3 2 zzz
I would like to build a query that returns only, in the case of the above example, rows 1 and 2 from tier_tbl, because only 1 and 2 exist in the tier_id data.
Im new to activerecord, and without a loop, don't know a good way of doing this. Does rails allow for this kind of query building in an easier way?
The reasoning behind this is so that I can list only menu items that relate to the specific object I am dealing with. If the object i am dealing with has only the items contained in randomdata_tbl, there is no reason to display the 3rd tier name. So i'd like to omit it completely. I need to go this direction because of the way the models are set up. The example im dealing with is slightly more complicated.
Thanks
Lets call your first table tiers and second table randoms
If tier has many randoms and you want to find all tiers whoes id present in table randoms, you can do it that way:
# database query only
Tier.joins(:randoms).uniq
or
# with some ruby code
Tier.select{ |t| t.randoms.any? }
I am trying to create a query for a custom grid. I want to show all tasks where the work product (user story the tasks belong to) is tagged with a specific tag.
For example:
US101 - Build a house (tags = architecture, external)
Task1 - _______
Task2 - ________
US102 - Build a school (tags = architecture)
Task3 - ________
How do I create a query that will show task1, task2, and task3 based on the fact that their work products have the tag = architecture ? (I know I can go through and manually tag every task under it and then do a query on task tags, but this is a huge pain, especially if tasks are added)
Create a custom grid of tasks and use this as the query:
(WorkProduct.Tags.Name contains "architecture")
I want to create a query in TFS that allows me to view only Work Items that currently are ready to be worked on (all preceding work items are closed or resolved). Is this possible?
In TFS2010 you have the option to query on the Direct Links. You should be able to achieve with this query type what you want.
I have 5 tasks:
Task 1 is an active task
Task 2 is a closed task
Task 3 has Task 1 as predecessor (link type = predecessor)
Task 4 has Task 2 as predecessor
Task 5 has Task 1 and 2 as predecessor
Based on your requirement you only want to see task 1 and 3.
You can now create the following query: