Udostępnij za pośrednictwem


How to: Edit Work Item Queries

To find information that is not listed in the Team Queries, such as work items with specific words or that are in specific states, create a custom query in My Queries. You can save any query you create and then reopen it when you need it. If you create queries you think your entire team will use, save them in the Team Queries folder to make them available to everyone on the project. For more information on creating queries, see How to: Add New Work Item Queries.

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 edit team queries

  1. Open an existing team project.

  2. In Team Explorer, under Work Items, click Team Queries.

  3. Double-click a team query to open it.

  4. On the query toolbar, click View Query to show the query.

  5. Make changes to the query.

  6. On the File menu, click Save<query name>[Query] As, and save the query under a new name.

    Note

    You must be a member of the Project Administrators group to save to the Team Queries folder. However, you can edit a team query and save it as a file or to the My Queries folder.

To edit queries in My Queries

  1. Open an existing team project.

  2. In Team Explorer, under Work Items, click My Queries.

  3. Double-click a query to open it.

  4. On the query toolbar, click View Query to show the query.

  5. Make changes to the query.

  6. On the File menu, click Save<query name> [Query], or click Save<query name>[Query] As and save the query under a new name.

See Also

Tasks

How to: Open an Existing Team Project

How to: Add New Work Item Queries

How to: Run Work Item Queries

Concepts

Creating Work Item Queries