Manage and organize queries in Azure Boards and Azure DevOps

TFS 2017 | TFS 2015 | TFS 2013

Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 | Visual Studio 2013

Organize your personal or shared queries by adding a query folder. You can then add queries to or move existing queries into those folders. You can create queries and query folders from the web portal or from a supported client, such as Visual Studio Team Explorer and Team Explorer Everywhere, a plug-in for Eclipse.

Note

To create and manage queries in Visual Studio 2019, you need to Set the Work Items experience to the legacy option.

Prerequisites

Open a query

Run, edit, and save a query

The easiest way to define a query is to start with an existing shared query. The following example shows how to find all closed bugs by modifying the Active Bugs shared query provided with the Agile process template. Examples are based on the user interface provided through the web portal.

Rename or delete a query

Add a query folder and move items into a folder

Tip

You need Delete permissions to rename or move a shared query or folder, and Contribute permissions for the folder where you move the query to. To view or set permissions, see Set permissions on queries and query folders.

Add a query to the dashboard or share it with your team

To add a query to a dashboard, open the actions icon (or context icon) menu for the query and add it to a specific dashboard or as a team favorite.

Share queries with your team by adding them to a folder under the Shared Queries container. To save a query to a Shared Queries folder, get added to the Project Collection Administrators group or have your permissions set for a folder under Shared Queries.

You can only add shared queries to dashboards or as team favorites, and only if you have team administrator or project administrator permissions.