Azure Boards : Completed Work for Epic/Feature - azure-devops

I need to get the total completed work on Epic/Feature .
Epic->Feature->UserStory->Tasks are linked with parent/child hierarchy.
How to use sum of completed work on an EPIC or a Feature, considering all the tasks that are child to them have the completed work in it.
Query Editor doesn't have an option to do sum function.

You can add Custom Rollup on the backlog level:
The result:
Check this document: Display rollup progress or totals in Azure Boards
Here you can find additional suggestions to rollup work: Rollup of work and other fields

Related

Azure Devops Dashboard Functions using work item fields

I have custome fields that use dates as a data type for my work items in Azure Devops Project? I would like to on a dashboard calculate the difference in number of days between two fields? Anyone have a step by step to accomplish this?
I have created a query to capture all the work items that are relevant and set the column options to include the fields needed for the equation but dont know how to add a widget that will perform the function on these fields and display the number of days between the two fields on my dashboard. (Audit finish date - Audit Start Date)

Addressing a parent level of #CurrentIteration in the query [azure-devops-server]

I've been searching it for a longer while and still have no answer.
I would like to automate creation of a set of queries for the dashboard relevant to the particular quarter. Currently, queries are copied-pasted every quarter with updated iteration path under eg xx\2022 Q4, and the structure is as follows
2022 Q3
Sprint 1
Sprint 2
Sprint 3
Sprint 4
2022 Q4
Sprint 1
Sprint 2
Sprint 3
Sprint 4
I wanted to use #CurrentIteration, yet the problem is that then the query pulls out the results only of the current sprint instead of the whole quarter.
Is there any way to address the parent of #CurrentIteration in the query (so 2022 Q4 in this case instead of only Sprint 1) that would be automatically updated every quarter?
According to your description, I did some research and test, the #CurrentIteration and there is currently no option to set it to parent level (2022 Q4) to include the entire quarter.
Maybe you could try to create a sliding window of your team's iterations query to check if it meet you requirements.
If not, you could use "Request a feature" on the left side of Developer Community to open a new suggestion ticket.

Azure Devops Dashboards - How to chart the trend of query results over time based on work item history?

I want to be able to generate a stacked bar chart based on the results of a query, for example the number of open bugs and open features. I would like to see the resulting number of open bugs vs features from that query over a time period, for example the last 30 days. Specifically the number of bugs vs features that were open on that particular day, regardless of their current status. Is there a way to do this using an existing out of the box widget? I believe it should be possible to figure out this information using the history. Alternatively, is it possible to simply store the totals from the query somewhere in devops and then chart it? Or would I need to write a script to export the query results via the api and then use something like the power bi widget to chart it?
Sure, you can set up a chart of the query about the bugs and features opened in the last 30 days.
To meet this demand, you can do like as the steps below:
Set up a query with the following filter clauses. Save this query to the Shared Queries folder.
Work Item Type In Bug,Feature
State = [Any]
Created Date >= #StartOfDay('-30d')
On the Charts tab of the new query, create a new chart for the query like as below.
After saving the chart, add this chart to a specified dashboard in the project.
After above steps, navigate to the specified dashboard in the project, you can see the chart on the dashboard.
[UPDATE]
According to your latest reply, you want to get the Bug and Feature that were open state in the last 30 days. For these work items, we can think they satisfy one of the following conditions:
The work items were closed in the last 30 days, no matter what date they were created.
The work items are still open state currently. They do not have the closed date yet.
So, set up the query like as below should be able to match these work items.
Work Item Type In Bug,Feature
And State = [Any]
And Closed Date >= #StartOfDay('-30d')
Or Closed Date =
Group the last two clauses.
Then create the chart for the query.
Maybe the stacked chart would go some way to answering your problem.
https://learn.microsoft.com/en-us/azure/devops/report/dashboards/charts?toc=%2Fazure%2Fdevops%2Fboards%2Ftoc.json&bc=%2Fazure%2Fdevops%2Fboards%2Fbreadcrumb%2Ftoc.json&view=azure-devops#add-a-trend-chart
That produces charts with date as the x axis which, I think, is what you're looking for.

Specifying schedule (start date, finish date) for tasks in CMMI process Azure DevOps boards

I have set up a project in Azure DevOps, selecting the CMMI process as setting (mainly to be able to schedule the start and end dates of each work item).
However, for tasks, I am not able to select neither "Start Date" nor "Finish Date" - both appear with a lock button. I am able, however, to set up both dates for higher level work items such as Features and Epics.
I have tried with both Stakeholder and Basic access, does not work for either of them.
Is there any way on how to configure this? I have not issue with converting from CMMI to another type of project.
Thank you.
Start Date and Finish Date fields are calculated if you create a project plan in Microsoft Project and then synchronize that plan with tasks that are stored in Azure Boards. These fields may not appear on the work item form, but they are calculated for those backlog items and tasks that are linked to backlog items. The values are read-only in backlog items and tasks, so you can not modify them.
If you want to set "Start Date" and "Finish Date" for a task, you could customize (need to use inherited process) two Date/Time fields, and add them in a group.
Go to inherited process, select Task work item, and hide the "Start Date" and "Finish Date" field:
Create two customized Date/Time fields:
Now you would be able to set Date/Time in Task work item:
The default Start and Finish date fields in Task Work-Item type can be edited in Backlog view and then using 3 dots (...) option for one or multiple tasks. It opens up a pop-up to select the fields to edit, choose the Start and Finish date fields and set the desired date(s).
click on 3 dots from Backlog view:
select the Start and End date fields in the Pop-up window, choose the desired dates and click save button:
The updated date fields can be seen by adding the respective columns in the backlog view:

How to set up a dashboard action filter to show only those records in sheet B that contain the current selection in sheet A?

First time poster here. I am putting together a dashboard to show progress of a number of projects which all contain a given set of milestones.
I put together two charts, a 'milestone overview' which shows a count of project_id by milestone achieved (blue) or not yet achieved (grey), and a 'gantt chart' which shows timeline of these milestones for each project_id see milestone and gantt dashboard. All projects should contain all of the milestones but it's not always the case.
I would now like to apply dashboard action to filter the 'gantt chart' and only show projects which contain the selected milestone in the 'milestone overview' and where that milestone has been achieved (or not achieved depending on the selection), but preserve the appearance. Esentially I need to pass project_id from 'milestone overview' to the 'gantt chart', see desired result filtered gantt
Currently, the only common dimension is activity_id (milestone) so when I use this to filter the gantt, the correct projects are shown, but all other milestones are excluded from the view and the gantt breaks see this image
I've tried adding project_id to the details shelf in the 'milestone overview' chart but it then fragments the chart see fragmanted milestone chart
I then tried pushing it to the secondary axis (to sit behind the aggregated chart) but dashboard actions ignore it because then only to aggregated chart from first axis can be selected.
I also posted un Tableau community forums here with a sample workbook, but haven't yet had any responses. Any suggestions?
Thanks
I think you just need to place a filter for the Activity ID on your Gantt chart Worksheet, like this:
When you go to the Dashboard, the action filter should filter like this:
I can send you back the workbook if you like.
FYI please see the response provided by Yuri in Tableau community forums. Basically this is a one-click solution with Set Actions in the new 2018.3 version. For those in older versions, provided is a two-click solution (snapshot added). I'm not fully clear on why this works given there are no common fields between 'show projects' and 'milestone overview' sheets, yet the dashboard action still goes through without the 'missing fields on sheet...' error. Anyway, it's the best alternative to set actions.snapshot of the solution provided