View and Modify Work Items in a Direct Links View
You can manage and review changes to your work items more easily by using the direct links view. You can find work items that are associated by links by using the Work Items and Direct Links query. Within the direct links view (), you can focus on a group of linked work items by expanding or collapsing leaf nodes. In addition, by using Team Explorer, you can use the drag and drop operation to move or copy link relationships.
A direct links view of work items is especially useful when you want to perform the following tasks:
Review active tasks grouped by feature area.
Assess changes that were made to work items that you do not own but that your work items depend on.
Assess changes that were made to dependent work items at a point in time.
Manage commitments made to other project teams.
Manage cross-group dependencies.
Change link relationships by moving or copying a source work item to a target work item.
Export the direct links view to Office Excel for bulk updates to column fields.
You can use the direct links view to list work items which are associated using link types that are based on any type of link. The direct links view can only show one level of dependency. To view multiple levels of hierarchical relationships among work items, use the Tree of Work Items query. For more information, see View and Modify Work Items in a Tree View.
In this topic
Task |
Team Explorer |
Team Web Access |
---|---|---|
Listing work items and their direct links |
X |
X |
Changing a query to a direct links query |
X |
X |
Expanding and collapsing leaf nodes |
X |
X |
Moving, copying, and deleting link relationships |
X |
|
After your query is defined, you can save it in order to reuse it or share it with other team members. For more information, see Organize and Set Permissions on Work Item Queries.
Required Permissions
To perform these procedures, you must be a member of the Readers group or your View work items in this node permission must be set to Allow. To save a query as a team query, you must have the appropriate permissions set. For more information, see Organize and Set Permissions on Work Item Queries and Team Foundation Server Permissions.
Listing Work Items in a Direct Links Query
In Team Web Access, you can create a query or open an existing query and change it to a direct links view. You can also expand and collapse nodes within this view.
To create a direct links view query by using Team Web Access
In the Team Web Access quick launch area, click the arrow next to Queries, and then click New Query.
Note
You can also create a public query by clicking the arrow next to Team Queries and then clicking New Team Query.
For the Type of Query, click Work items and Direct Links.
Specify the filter criteria for the first tier of work items:
Click each column in the query clause to fill in the clause. If a column has a list of accepted values, click the arrow to select one from the list. For a description of the available columns, see Query Fields, Operators, Values, and Variables.
To add another clause to the query, click Click to add a new clause, and specify the values for Field, Operator, and Value.
Repeat step 3b to add all the filter criteria that will return the list of work items that you want. Group or ungroup clauses as needed. For more information, see Specify Query Filter Criteria.
On the query toolbar, click Run, and confirm that the query returned the results that you expected.
Repeat steps 3c and 3d until you get the first tier of work items that you want.
(Optional) To narrow the search more, specify the filter criteria for linked work items by following these steps:
Filter Criteria for Linked Work Items
Select the Top level work items filter criteria that will additionally filter both the first and second-tier list of work items as follows:
Only return items that have the specified links: Only first-tier work items are returned that have links to work items specified by the linked work items filter criteria.
Return all top level work items: All first-tier work items are returned regardless of the linked work items filter criteria. All second-tier work items that are linked to the first tier are returned based on the linked work items filter criteria.
Only return items that do not have the specified links: Only first-tier work items are returned that do not have links to work items specified by the linked work items filter criteria.
(Optional) Click Types of links, and then select one or more of the available check boxes for the link types to include in your filter criteria.
To add another clause to the query, click Click to add a new clause, and specify the values for Field, Operator, and Value. You must specify In as the Operator value to filter link types that belong to a set, for example Fulfilled by.
On the query toolbar, click Run, and confirm that your query returned the results that you expected.
Modify the filter criteria that you specified in steps 4a, 4b, or 4c and then repeat step 4d until you get the first and second-tier of work items that you want.
(Optional) Click Column Options to modify which columns appear in the query results or how the results are sorted.
(Optional) Click Save or Save as. For more information, see Save, Copy, Rename, and Delete Work Item Queries.
(Optional) Click Close Editor to close the query editor and focus on the list of work items.
To create a direct links view query by using Team Explorer
In Team Explorer, open your team project, expand the Work Items node, and then select Team Queries or My Queries.
On the Team menu, click Add Query.
For the Type of Query, click Work Items and Direct Links.
Specify the filter criteria for the top-level or first tier of work items by following these steps:
Click each column in the query clause to fill in the clause. If a column has a list of accepted values, click the arrow to select from the list. For a description of the available columns, see Query Fields, Operators, Values, and Variables.
To add another clause to the query, click Click here to add a new clause, and specify the values for Field, Operator, and Value.
Repeat step 4b to add all the filter criteria that will return the list of work items that you want. Group or ungroup clauses as needed. For more information, see Specify Query Filter Criteria.
On the query toolbar, click Run, and confirm that your query returned the results that you expected.
Repeat steps 4c and 4d until you get the first tier of work items that you want.
(Optional) To narrow your search more, you can specify the filter criteria for linked work items:
Filter Criteria for Linked Work Items
Specify the And linked work items that match the query below. Perform the same sequence of steps provided above in step 4.
To add another clause to the query, click Click to add a new clause, and specify the values for Field, Operator, and Value. Specify In as the Operator value to filter link types that belong to a set, for example Fulfilled by.
Select the Linking Filters that will additionally filter your first-tier list of work items as follows:
Return all top level work items: All first-tier work items are returned regardless of the linked work items filter criteria. All second-tier work items that are linked to the first tier are returned based on the linked work items filter criteria.
Only return work items that have the specified links: Only first-tier work items are returned that have links to work items specified by the linked work items filter criteria.
Only return work items that do not have the specified links: Only first-tier work items are returned that do not have links to work items specified by the linked work items filter criteria.
(Optional) Click Return selected link types, and then select one or more of the available check boxes for the link types to include in your filter criteria.
On the query toolbar, click Run, and confirm that your query returned the results that you expected.
Modify the filter criteria that you specified in steps 5a, 5b, or 5c and then repeat step 5d until you get the first and second-tier of work items that you want.
(Optional) Click Column Options to modify which columns appear in your query results. For more information, see Add, Remove, Reorder, and Sort Columns.
(Optional) Click Save or Save As. For more information, see Save, Copy, Rename, and Delete Work Item Queries.
(Optional) Click Collapse Top Panel to close the query editor and focus on the list of work items.
Changing a Query to a Direct Links Query
To change a query to a direct links query by using Team Web Access
In Team Web Access, click the Work Items tab.
Click the arrow next to the query that you want to modify, and then click Edit.
For the Query Type, click Work items and Direct Links.
(Optional) Modify the query.
Click Save.
To change a query to a direct links view query by using Team Explorer
In Team Explorer, open your team project, expand the Work Items node, and then select Team Queries or My Queries.
Right-click the query that you want to modify, and then click Edit Query.
For the Type of Query, click Work Items and Direct Links.
(Optional) Modify the query filter criteria.
Click Save.
Expanding and Collapsing Leaf Nodes
To expand and collapse leaf nodes in a direct links view query
In Team Web Access:
To collapse a node, click .
To expand a node, click .
In Team Explorer:
To collapse all nodes, click (Collapse All).
To collapse a single node, click .
To expand all nodes, click (Expand All).
To expand a single node, click .
Changing Link Relationships of Work Items
To change link relationships of work items in a direct links view by using Team Explorer
In Team Explorer, open a direct links view query.
Modify the query to list the work items that you want.
Change the link associations of work items, by following one of the listed procedures:
To move a work item, click a source work item and drag it to a new target work item.
To add a new link relationship, click a source work item, press the CTRL or Shift key, and drag it to a new target work item.
To delete a linked relationship, open the target work item, click the Links tab, and delete the source work item. For more information, see Create or Delete Relationships Between Work Items.
Work items whose links have been changed are highlighted in bold and the link icon () appears in the modification column, which indicates that they have been modified.
Save or discard the changes:
To save the modifications, click Save Results.
Note
If one or more parent work items does not save, open each work item individually and click Save Work Item.
To discard the changes, click Refresh. In the dialog box that opens, click No.
See Also
Tasks
Add, Remove, Reorder, and Sort Columns
Save, Copy, Rename, and Delete Work Item Queries
Concepts
Working with Team Foundation Clients
Choosing Link Types to Effectively Track Your Project
Query Fields, Operators, Values, and Variables
Finding Bugs, Tasks, and Other Work Items