Query Editor: How to create a query on the backlog as it was on a specific date? - charts

The Cumulative Flow Diagram is useful, but its granularity is set quite large, i.e. you can only see numbers for the dates it chooses, which can be a week or more apart. However, it shows that under the hood, VSTS is recording the state of the backlog at every date.
It seems that the data must exist to find out the data I need (in this case the sum of effort for each state for PBIs) as it was at a given date - not just the dates picked by the chart for its points.
I've searched around but can't find it anywhere. Does anyone know how to do it?

To set date for Cumulative Flow Diagrams (CFD), you just need to click on the CFD and edit the date.
Such as to set the date of the CFD in backlog:
Click the diagram -> Edit -> specify the start date in Cumulative flow Tab -> Save.
Then the CFD will be changed based on the specified period.
To filter CFD by tag, type, Assign To etc, VSTS has not support this feature for now. But you can create an user voice for it, or you can calculate with your own code.

Related

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:

Is there a way to force the output of a Stat panel in Grafana to only show values in days

I'm building a Grafana dashboard with some Stat panels that show average, minimum, and maximum time values (see below) for specific fields in my database. I'm storing the data in seconds and setting the value's units to seconds after which the panel displays the time in weeks, days, hours, etc. For the sake of consistency, I would like everything to be shown in days but I haven't been able to find a way to force units for the output value. If it's possible to do this, could someone please point me to some docs, or something that could show me which configurations to make in my panels?
So far, I've tried (without success):
Configure each panel to use units of days
The result of this was that everything showed up in years, etc.
Configure each panel to create a new field by performing a binary calculation where I converted from seconds to days and then I updated the units to be days
The result was that the values were not changed at all -> instead of showing X days, or whatever, it just showed the value in seconds without the units. I'm not sure what I messed up there, but it didn’t change anything.
I found this link that discusses setting a time range for queries
This didn’t end up being useful for what I was trying to do because it was actually geared towards changing the query to a specific date range rather than the output.
I looked through the transformations documentation, stat panel documentation, and a few other panel documentation pages in an effort to see if there was any information on how to do it but I was unable to find anything on forcing the output value to use a specific unit.
Edit:
So I kept messing around with the dashboard and got a solution that works - i.e. it's a "good-enough" solution (see below) - but, now, I'm curious if it's possible to show the units along with the value without it converting it to some other unit. Does anyone have any ideas about this?
One thing to note is that the data for this image is different than the data for the previous one so I'm expecting an inexact conversion to days.
You can use a custom unit. It is a bit tricky to enter the unit in the UI because of the automatic selection but if you enter i.e. "days" (without the quotes) in the Unit field ans instead of leving the field with tab or mouse click use the scrollbar of the combobox and select the last entry "Custom Unit: days".
Hope it helps. And for the record: I am using Garafana 7.1.4

In Azure devops, how to query task that was not close in the same day it was activated/ when the state was changed?

Im a bit new at azure devops and I am trying to view task that was not close in the same day it was activated/ when its state was changed using query. My point of confusion is that I dont know how compare the state change date with the close date.
the output should be tasks that are still active and task that are closed but not in the same date it state was change
UPDATE
So I was wondering if my approach was wrong so I tried different approach.
here I try using the []<> to compare completed date with activation date, it should have sorted to show only task that the activation date are different from the close date but here I still got shown tasks which have close date and activation date in the same date.
UPDATE 2
Since I cant use the '[]<>', I decided to use the not so smart way to compare the task close date, active date, and create date as seen in the screenshot below, it is ugly but it works. If anyone knows a smarter way to do this, please do tell.
My current solution
I still got shown tasks which have close date and activation date in the same date.
The reason for this problem you met is that when you use the condition “Closed Date <>[Field] Activated Date”, the values of these two fields are actually datetime format which means it contains hours, minutes and seconds like below:
That’s why you can still see the records shown with same date.
As for the requirement you mentioned, there’s no directly available solution you can use in Azure DevOps Query as far as I know.
In addition, please refer to Group clauses where you can see how to set conditions for “not close in the same day it was activated/ when its state was changed”, like below:

Use "hours" for estimations in VSTS

I was looking on VSTS, but I didn't found how to estimate our Tasks/users story in hours instead of Story point.
Is this possible?
I know the pro(and cons) of story points, buf for now our team want to move progressively with agile, and we don't want to start to estimate in story points.
Thank you!
Edit as requested, I currently use the agile template(but open to change)
Declare "One story point is equal to one hour" and use the existing field as-is.
TL;DR
Use the built-in scrum template
If you use the built-in Scrum template Tasks have Remaining Work and PBI's have Effort. Nothing says Remaing Work = hours or Effort = story points.
If you want to estimate your tasks in number of 4 hour work blocks it will take to complete you can do that, if you want to do it in hours you can do that. Same goes for effort you can put any number in there you want as long as you make sure everyone in your team understands what 1 or 5 or 10 means.
So if possible switch to the scrum template, your question is exactly the reason why these fields have a more generic name than Story Points or Remaining Hours in the scrum template. Added bonus is that your team can switch definition if they feel like some other number or unit suits your estimation process better.
This blog post makes a good comparison between the built-in different templates:
https://nkdagility.com/choosing-a-process-template-for-your-team-project/
If you are an administrator in VSTS select the VSTS button at the top left of the screen. Then select then select the cog.
This will take you to a page where you can edit a number of settings. Select Process.
In the process window choose the process your project uses. You can see which one your project is using by the numbers on the right hand side of the process. Once you’ve found your process select it by clicking.
Then choose the work item type you wish to change. So in this instance user story.
Once in the task you want to change select add group and name the group want to add and select it's placement on the card.
When the group has been added select it and choose the ellipses (...). Then select Add Field. Customise the field to be either a new one of your choosing or choose a predefined one.
Once you have added this step repeat the process on this page to customise and style the task how you like. Once done navigate back to your project in VSTS and the changes will be applied

Data Blending Tableau

I am creating a data blend and combining 2 excel files. I have volume
data dummy as primary data source & lifecycle dummy as secondary.
The common key is Ticket Id. Have created a calculated field to find the ticket
time which is Ticket Time =
DATEDIFF('day',ATTR([LifeCycle Dummy].[Assigned]),ATTR([LifeCycle Dummy].[Closed]))
Now i am not able to figure out how to show average ticket time per month or
at various other dimensions available such as priority, status etc. If i
remove the ticket id and only keep ticket time then the blend does not work. Do
advice if this can be achieved. Attached picture for reference.
If you want to show average ticket time per month, or any data based calculation, you'll need to join the data sources on Date also - looking at your screenshot they don;t appear to be linked yet. To enable them to be linked both fields must have exactly the same name, then you can click the paperclip icon next to the field to link it.