Querying for Work Items
To locate work items in your team project, you use searches, or queries. Work item queries are available in Team Explorer from the Work Items node of your team project. You can target your search by looking for specific values in the fields on the work item form using query clauses. You can search for one specific field value, or create more complex queries that involve several query clauses.
Work item queries are stored in the Team Foundation database for the team project. You can also save a query to a file, and then copy or mail the query to anyone with access to Team Foundation Server and the team project. Query files have the file extension .wiq.
Query Types
There are two types of queries you can use in Team Foundation Server: Team Queries and My Queries. Both queries are stored on the Team Foundation Server.
Team Queries These queries are available to everyone in your team project. Team Queries can only be created and modified by people who have been given permission to create them by your team project administrator.
My Queries These queries are available only to you. For more information, see Creating New Work Item Queries.
In This Section
- Query View and Results View
Provides an overview of the query view and results view.
- Viewing Work Items
Lists topics for finding and viewing work items.
- Creating New Work Item Queries
Lists topics for creating new work item queries.
- Working With Work Item Query Clauses
Lists topics for using query clauses to construct work item queries.
See Also
Tasks
Walkthrough: Tracking Work Items
How to: Add New Work Item Queries
How to: Save Work Item Queries
How to: Add or Remove Work Item Query Clauses
How to: Group or Ungroup Work Item Query Clauses
How to: Run Work Item Queries
How to: Send Work Item Queries in E-Mail