Save, Copy, Rename, and Delete Work Item Queries (Team Explorer Everywhere)
You can save, copy, or rename a query for your own use or to share with others. When you save your query, you can access it later or delete it if the information is no longer needed.
In this topic
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 be a member of the Project Administrators group or you must have the required permissions set. For more information, see Organize and Set Permissions on Work Item Queries (Team Explorer Everywhere) and the following page on the Microsoft Web site: Team Foundation Server Permissions.
Creating, Saving, and Copying Work Item Queries
To create and save a work item query
In Team Explorer, right-click the Work Items folder, and then click New Query.
A new query opens.
Create or modify the query criteria.
For more information, see Specify Query Criteria and Finding Bugs, Tasks, and Other Work Items (Team Explorer Everywhere).
On the toolbar, click Save, and type the name that you want for your query.
Under Select the query type and save location, perform one of the following sets of steps:
To save your query under the Work Items node, click Server. In Query folder, click Browse to specify the team project and folder or subfolder where you want to save your query.
If only you will use the query, save your query in My Queries or a folder under this node.
If other team members will use the query, save your query in Team Queries or a folder under this node.
For more information, see Organize and Set Permissions on Work Item Queries (Team Explorer Everywhere).
To save your query to a file that you can send in e-mail, click File, and then specify the folder and file name where you want to save the file (or click Browse). Team Explorer Everywhere saves the query with the .wiq file name extension.
For more information, see Organize and Set Permissions on Work Item Queries (Team Explorer Everywhere).
Click OK.
To copy a work item query
Right-click the query, and then click Edit Query.
On the File menu, click Save As.
In the Save Query As dialog box, specify the target name and save location, and then click OK.
Although you can perform a copy and paste operation in other Team Foundation Server clients, those operations are not supported in this release of the Team Foundation Server plug-in for Eclipse.
You can also move work item queries. For more information, see Moving a Query, a Folder, or a Subfolder.
Renaming Work Item Queries
To rename a work item query
Open a team project.
Expand the Work Items folder, and then click My Queries.
Right-click the query that you want, and then click Rename.
Type your new query name, and then click anywhere outside the box to save your changes.
Deleting Work Item Queries
To delete a work item query
Open a team project.
Expand the Work Items folder, and then click My Queries.
Right-click the query that you want to delete, and then click Delete.
You can also press the DELETE key.
In the confirmation dialog box, click OK.
See Also
Tasks
Organize and Set Permissions on Work Item Queries (Team Explorer Everywhere)
Other Resources
Finding Bugs, Tasks, and Other Work Items (Team Explorer Everywhere)