View or run a query in Azure Boards and Azure DevOps - Azure Boards (2024)

  • Article

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019

Visual Studio 2019 | Visual Studio 2022

To find work items assigned to you or your team, run a query. Many work item queries are predefined with your process. Members of your team may have created shared queries that you can view and run. Often, it's easier to define a new query by building on the query definition that's already available to you.

Prerequisites

  • Access levels:
    • Have Stakeholder access to view and run shared queries. All project members have Stakeholder access by default. For more information, see Change the permissions for a shared query or folder.
    • Have Basic access or higher to add and save a shared query.
  • Permissions: Have your Contribute permission set to Allow for the folder that you want to add a query to. By default, the Contributors group doesn't have this permission.

Note

Users with Stakeholder access for a public project have full access to query features just like users with Basic access. For more information, see Stakeholder access quick reference.

  • Access levels: By default, all project members and users with Stakeholder access can view and run all shared queries. You can change the permissions set for a shared query folder or shared query. For more information, see Set query permissions.
  • Permissions: To add and save a query under Shared queries, you must be granted Basic access or higher. Also, you must have your Contribute permission set to Allow for the folder you want to add the query to. By default, the Contributors group doesn't have this permission.

Open Queries

  • Browser
  • Visual Studio

From your web browser, (1) check that you have selected the right project, (2) choose Boards > Queries, and then (3) choose All.

View or run a query in Azure Boards and Azure DevOps - Azure Boards (1)

If it is your first time opening Queries, the page opens to Favorites. This page lists those queries that you have indicated are a favorite. Otherwise, you can choose All to view all queries you've defined and shared queries defined for the project.

Tip

Queries you or your team have chosen as favorites show up on the Favorites page. Favorite queries along with other objects also appear on your Project page. For more information, see Set personal or team favorites.

Run a query in Azure Boards

To run any query, expand a folder and choose the title of the query. The view opens to display the query Results.

You can also run a query by using the Azure DevOps command line interface.

  • Browser
  • Visual Studio

Tip

The Queries page, as with other web portal pages, remembers the view you last went to and returns you to that view.

  1. Choose All to open the page where you can view all queries you've defined or that are shared within your project.

    View or run a query in Azure Boards and Azure DevOps - Azure Boards (2)

  2. Choose My Queries as needed.

    • To view all work items assigned to you, choose Assigned to me. This query uses the @Me macro to list all work items assigned to you.
    • To view all work items you're following, choose Followed work items. This query uses the @Follows macro (ID in @Follows) to list all work items you've chosen to follow. For more information, see Follow a work item or pull request.
  3. Choose Shared Queries to expand the folder and access queries saved as shared queries.

  4. Choose a folder within a breadcrumb to open a query folder.

    View or run a query in Azure Boards and Azure DevOps - Azure Boards (3)

Run a query from the command line

You can run a query in the CLI with the az boards query command. To get started, see Get started with Azure DevOps CLI.

az boards query [--id] [--org] [--path] [--project] [--wiql] 

Parameters

  • id: The ID of an existing query. Required unless--path or--wiql is specified.
  • wiql: The query in Work Item Query Language format. Ignored if--id or--path is specified.
  • path: The path of an existing query. Ignored if--id is specified.
  • org: Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up using git config. Example: --org https://dev.azure.com/MyOrganizationName/.
  • project: Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up using git config.

Example

The following command runs a query with the specified ID and shows the result in table format.

az boards query --id 6c286d74-26a5-4cce-bfcf-bf9123495bfe --output tablePriority Node Name Work Item Type Title Remaining Work---------- ---------------- ---------------- -------------------------------- ----------------1 Voice Bug Apply fix elsewhere as needed2 CMMI Bug Slow response on form1 Fiber Bug Check issues with permissions 02 Fiber Bug Voicemail hang issue 02 FabrikamBB Bug Research slow response time1 FabrikamBB Bug Fix performance issues 0 

The following command runs a query with the specified WIQL and shows the result in table format.

az boards query --wiql "SELECT [Microsoft.VSTS.Common.Priority], [System.NodeName], [System.WorkItemType], [System.Title], [Microsoft.VSTS.Scheduling.RemainingWork], [System.AssignedTo], [System.State], [System.Tags], [System.AreaPath] FROM workitems WHERE [System.WorkItemType] = 'Bug' AND [System.AreaPath] = 'Fabrikam Fiber' ORDER BY [System.WorkItemType]" --output tablePriority Node Name Work Item Type Title Remaining Work---------- -------------- ---------------- ---------------- ----------------2 Fabrikam Fiber Bug Slow response on form2 Fabrikam Fiber Bug Check permissions2 Fabrikam Fiber Bug Fix performance issue2 Fabrikam Fiber Bug Secure Sign-in 

Query directory, query folders, and breadcrumbs

Note

You can't add folders to My Favorites or Team Favorites.

  • Browser
  • Visual Studio

The Queries page contains a directory-focused view that you can filter to find specific queries of interest.When you're working in the Queries pages, you can go to a subfolder, folder, or page.

View or run a query in Azure Boards and Azure DevOps - Azure Boards (4)

Also, you can choose a query that you've favorited from the selector menu, Or, you can choose to browse all queries, which returns you to the All Queries page.

View or run a query in Azure Boards and Azure DevOps - Azure Boards (5)

For more information, see Query FAQs, Navigate, and Folders.

All and Favorites supported tasks

You can do most tasks for viewing and running queries from each of the queries list pages as indicated in the following table. Only queries you save under My Queries and have favorited show up under My Favorites. Only queries saved under Shared Queries can be favorited by a team.


Task
Favorites
(Browser)
All
(Browser)
Work Items
(Team Explorer)
View all favorited queries, yours or a team you belong to✔️✔️
View all your queries or shared queries for the current project✔️✔️
Run a query, open the context menu for a query✔️✔️✔️
Expand or collapse container folders or query folders✔️✔️✔️
Filter the list of queries✔️✔️
Favorite a query (for web portal, choose View or run a query in Azure Boards and Azure DevOps - Azure Boards (6))✔️
Unfavorite a query (for web portal, choose View or run a query in Azure Boards and Azure DevOps - Azure Boards (7))✔️✔️✔️
Add a new query: Choose View or run a query in Azure Boards and Azure DevOps - Azure Boards (8)✔️✔️✔️

Filter the list of queries

Enter a keyword into the filter box to filter the set of queries displayed on either the Favorites or All pages. To learn more about filtering, see Filter backlogs, boards, queries, and plans.

View or run a query in Azure Boards and Azure DevOps - Azure Boards (9)

For more information, see Query FAQs, Navigate, and Folders.

  • Browser
  • Visual Studio

From the Query Editor or Results view, you can email a formatted list of query items or copy the query URL.

Choose the View or run a query in Azure Boards and Azure DevOps - Azure Boards (10) actions icon to open the menu and select from the options listed, Email query or Copy query URL.

View or run a query in Azure Boards and Azure DevOps - Azure Boards (11)
You can only send the email to individual address for a project member that is recognized by the system. Adding a team group or security group to the to line isn't supported. If you add an email account that the system doesn't recognize, you receive a message that one or more recipients of your email don't have permissions to read the mailed work items.

Note

To email a formatted list to people who aren't project members, you'll need to use the Copy as HTML option described in Copy a list of work items. For on-premises Azure DevOps, all email actions require an SMTP server to be configured. If you don't have an SMTP server configured, you can work around this by using Copy as HTML.

Next steps

Define a query

Related articles

  • Manage queries and query folders
  • Interactively filter backlogs, boards, queries, and plans
  • Change column options
  • Set personal or team favorites
  • Keyboard shortcuts
View or run a query in Azure Boards and Azure DevOps - Azure Boards (2024)

FAQs

View or run a query in Azure Boards and Azure DevOps - Azure Boards? ›

To run any query, expand a folder and choose the title of the query. The view opens to display the query Results. You can also run a query by using the Azure DevOps command line interface. The Queries page, as with other web portal pages, remembers the view you last went to and returns you to that view.

How do I run a SQL query in Azure DevOps? ›

If you want to do this in Azure Release Pipeline (classic), you can use the ' Azure SQL Database deployment ' block which uses Invoke-Sqlcmd under the hood. With that, you can configure it to execute an SQL script on a given database under one or your subscriptions or service connections.

What is a query in Azure DevOps? ›

In Azure DevOps, a query is a powerful feature that allows you to search and filter work items within a project. You can use queries to find specific work items, create custom reports, track progress, and manage your project more effectively.

How do I run a query in Azure database? ›

The article demonstrates the following steps:
  1. Connect to an Azure SQL database.
  2. Create a database.
  3. Create a table in your new database.
  4. Insert rows into your new table.
  5. Query the new table and view the results.
  6. Use the query window table to verify your connection properties.
Aug 14, 2024

What is the difference between Azure boards and Azure DevOps? ›

While Azure Boards focuses specifically on project management and tracking, Azure DevOps is a comprehensive solution that encompasses various aspects of the software development lifecycle.

How do I create a query in Azure DevOps dashboard? ›

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.

How do I access SQL in Azure? ›

To connect to Azure SQL Database:
  1. On the File menu, select Connect to SQL Azure (this option is enabled after the creation of a project). ...
  2. In the connection dialog box, enter or select the server name of Azure SQL Database.
  3. Enter, select, or Browse the Database name.
  4. Enter or select Username.
  5. Enter the Password.
Aug 1, 2023

How do I add a query in Azure? ›

Start a new query from the Queries tab in the web portal or the Work Items tab in Team Explorer. Select New query. The Query Editor displays with the following default settings: Flat list of work items, Work Item Type=[Any], and State=[Any].

How to view Azure SQL database data? ›

Locate the instance of SQL Server enabled by Azure Arc in the Azure portal. Select the SQL Server resource. Under Data management, select Databases. Use the SQL Server databases - Azure Arc area to view the databases that belong to the instance.

How do I run a database query? ›

Open or create the query you want to run. Right-click anywhere in the query window, and select Execute SQL from the shortcut menu. Press CTRL+R.

What are the limitations of Azure DevOps board? ›

Backlogs, boards, dashboards, and teams
User interfaceLimit
Boards1,000 cards (excluding those cards in the Proposed and Completed workflow state categories)
Taskboard1,000 tasks
Area Paths10,000 per project
Area Path Depth14
11 more rows
Sep 6, 2024

Is Azure DevOps Boards free? ›

Azure DevOps is included with Visual Studio Subscriptions

Visual Studio subscribers get free access to Azure DevOps. Subscribers get access to any number of organizations and don't count against your 5 free users.

How to execute SQL script in Azure Pipeline? ›

Read it from here.
  1. Step 1: Create a Service Principal in Azure Portal. ...
  2. Step 2: Creating the stored procedure. ...
  3. Step 3: Providing access to the Service Principal. ...
  4. Step 4: Create a Service Connection in Azure Pipelines. ...
  5. Step 5: Generate an Access Token. ...
  6. Step 6: Open the SQL Connection and run the stored procedure.
Jul 10, 2023

How do I run a SQL query in Azure synapse? ›

To run your SQL script, select the Run button. The results appear in a table by default. Synapse Studio creates a new session for each SQL script execution. After a SQL script execution finishes, the session is automatically closed.

Which command line tool would you use to query Azure SQL databases? ›

You can try the sqlcmd utility from Azure Cloud Shell, as it's preinstalled by default: Launch Cloud Shell.

How do I run a SQL Server query? ›

Click the Microsoft SQL Server action group in the action toolbox. Find actions by browsing action groups, or by typing an action name or function in the Search field at the top of the action toolbox. Drag the Microsoft SQL Server - Execute a query action to the point in the workflow when you want to execute a query.

Top Articles
Walmart managers can now earn $400,000 a year, no college required, thanks to stock grants
Early Termination Fee
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 6261

Rating: 4.4 / 5 (55 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.