How to: Add or Remove Work Item Query Clauses

If you are not getting the results that you want from a query, you can add or remove clauses to change your results. For more information about how query clauses are evaluated, see How to: Group or Ungroup Work Item Query Clauses.

Required Permissions

To perform these procedures, you must be a member of the Readers group or have the View work items in this node permission set to Allow. To save a query as a team query, you must be a member of the Project Administrators group. For more information, see Team Foundation Server Permissions.

To add a query clause

  1. Right-click the query you want to edit from the Team Queries or My Queries folders, and select View Query.

  2. In the query, right-click where you want the new clause inserted, and click Insert Clause.

    A new query clause row is added above where the cursor was.

  3. Fill in the columns for the new query clause.

To remove a query clause

  1. Right-click the query you want to edit from the Team Queries or My Queries folders, and select View Query.

  2. Right-click to the left of the clause row you want to delete, and then click Delete Clauses.

See Also

Tasks

How to: Add New Work Item Queries

How to: Group or Ungroup Work Item Query Clauses

How to: Run Work Item Queries

Change History

Date

History

Reason

August 2010

Added link to topic about the evaluation of grouped clauses.

Customer feedback.