Dashboard and daily work progress query on Azure DevOps - 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?

Related

How to show changed Work Items using Azure DevOps Queries (Audit-like query)

Trying to resolve how to get a list of all changed Work Items from a Backlog within Azure DevOps using queries, so far not successful.
Reason for this query, is that our organization is still fairly new to ADO and are still changing/tinkering with all WITs.
As of this, a query would fill the gap, to display who and what have changed on every WITs.
Currently tried tinkering with the following attributes [Changed Date, State Changed Date, etc.]
Although unfortunately, this ‘only’ shows some WITs and not WITs where say, Assigned To, Title, Target Date or any other field might have been altered.
I could do a query, but I reckon it would be a massive query which, in the end, might not even function
The History field might do the trick, but that's not an Attribute which one could use in a query?
Would it be possible to get an, say Audit-like query, which displays every change made to WITs during the last +30 days or so?
Br

Is there a way to filter an Azure DevOps board using dates?

On the Boards section of Azure DevOps, there's a nice filter bar. It contains filters for:
Type
Assigned to
Tags
Iteration
Area
Parent work item
As far as I can see, there's no way to use the section outlined in yellow to filter for work items (for example) created within the last seven days, or due within the next 14 days.
Things I've tried:
Creating a query and viewing results as a board (can't see an option to do that)
Finding a way to script work items into iterations based on date, and then filtering the board based on iteration
Is there a way to do this? It's specifically a board I'd like, as opposed to a Backlog-style list.
Just change the board's settings, Is this what you want?

How to query the historic state of items at a specific date?

I would like to query the state of a work item at a specific date. E.g. I want to know what was the state of all work items of one team last Monday. Of course I can go through all single items and check the state graphs manually, but that's not really feasible with several hundred items.
I tried to use a combination of different fields, including the 'State Change Date' but it only tells me when a change happened but not what was the specific state on the selected date.
Is there any way to query the historical states of a work item?
How to query the historic state of items at a specific date?
You can achieve this in Power Bi. First create an Analytics view in Azure DevOps.
For example:
Then open this analytics view in Power Bi.
Filter by Date field:

'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?