Azure devops query team projects - azure-devops

I want a query that looks at all team projects whose names begin with "customer". Is that possible or do I have to list them all?
Additionally, is there a way to filter all queries on top of an Azure DevOps dashboard by a common variable?"
I have tried a query but the drop-down for the filter is not available.

Is that possible or do I have to list them all?
You have to list them all. You may use or in groups:
or in for the Team Project field:

Related

Dashboard and daily work progress query on Azure DevOps

This is the work progress query i use on Azure DevOps. We have projects in different processes and i chose one project to check the progress and i query across all the projects from a single project. The query goes like this
Work item type, [Any]
And, State, [Any]
And, Assigned to, Team member name
And, Changed Date #StartOfDay('-1d')
Now im trying to make a dashboard with shared queries. Possible solution i could find is to save a shared query separetely for each team member and adding them to the dashboard. But if i have to check friday query results on monday then i have to change the number in last line to 3 for every query. it doesn not seem practical. is there another solution?

How can I pull a report of effort by person in Azure DevOps under the Scrum template?

In Azure DevOps, I need to pull a report of the work done by person in order to distribute payments between team members.
Since the VSTS does not support rollup of the Effort directly:
I suggest you use query to pull out the report of effort for all teams first, then download this report and roll up the effort by person.
Step1: Go Query page, then add Effort column by open Columns Options:
Note: This steps is very import, this can help for pull out a report which contains the Effort field.
Step2: Create a query like below shown:
In the value of State, just input the states which represent the work done in your project. For me, there has 2 states can represent the work has been done: Done and Closed. For Assign to, you could specify the group(s) name which cover the all person you want to check in value blank.
Step3: Download this into CSV by using the button Export to CSV:
Steps4: The above step would generate a excel in local. Then you could apply the Pivot table into that to count the effort by
person.

'Team context aware' query in Azure DevOps

Previously, in Azure DevOps, query macros like #CurrentIteration used the team context to return their results in the web portal.
Recent changes have changed this behaviour, so that specifying the #CurrentIteration macro now requires a specified team. Whilst i understand the reasons behind this (making the query more predictable, the ability to add multiple team based parameters in a single query), it does mean that it is more or less impossible to create queries that can be shared between teams. Each team has to make a copy, and plug in their own team name.
Is there any way to restore the previous behaviour?
You can create one query with "Or" operators for all the teams:

How to create Azure DevOps wiki reports for sprints?

Sprint 146 in Azure DevOps introduced the possibility to embed queries in the Wiki. More info here: https://learn.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-146-update#embed-azure-boards-query-results-in-wiki
In the image shown in the post:
It shows that you can, probably, create reports for each sprint. I have already some queries that are used to retrieve same data (for example active bugs), but are based on the current iteration like this:
Work Item Type = Bug
AND State Not In Done
AND Iteration Path Under #CurrentIteration
But I'd like to have a report I can see in the wiki for each of the sprint (both past and future ones) I have in the backlog, so how can I achieve that (if there's a way)?
I thought I could create and duplicate the same query replacing #CurrentIteration with the one that I'm interested in, but we're hundreds of sprints in the way, so I cannot create 100 copies of the same query just to replace a parameter.
Is there a simple way to do it? Am I missing something?

How can I list features associated to an epic with a flat list query?

Sprint 146 in Azure DevOps introduced the possibility to embed queries in the Wiki. More info here: https://learn.microsoft.com/en-us/azure/devops/release-notes/2019/sprint-146-update#embed-azure-boards-query-results-in-wiki
I have a query that lists all the features added to an epic and extracts data like this:
Epic X
Feature 1
Feature 2
Feature 3
This is "Work item and direct links" kind of query, but the Wiki accepts only "Flat list of work items" query. Is there a way to achieve the same result with this type of query?
I'm thinking of something like:
Work Item Type = Epic
AND ID = 1234
AND *GET ALL ASSOCIATED FEATURES*
The result will be a list of features, but will be good enough for my purpose. Features are epics' children.
Any idea?
This is a long-standing issue with the need for a "Flat list of work items", the Dashboard widgets that require a flat list also don't accept a Work Items + Direct Links, show (Parent | Child).
I suggest you file a suggestion over at Developer Community.
A trick to bypass this problem is to use a tool, like the TFS Aggregator CLI (currently in beta testing), to automatically populate a field on each work item with their Parent ID. You can then filter on that using the standard flat-list.