TFS 2017 not displaying "Remaining Work" in backlog - tfs

Our Setup:
1: Using TFS 2017
2: Using Agile process templates
In our web portal for our TFS backlog, we're unable to display the values of the "Remaining Work" field - the field is displaying as a column option, but none of the values are showing.
Backlog
However when you create a custom query the data is there. We've checked that we're using the correct column header that is specified in the Work Item Type.
Query
Does anyone know why this wouldn't be appearing when selecting the backlog?

User Stories/PBIs don't have a Remaining Work field by default. What you're seeing in the backlog view is the sum of the values of the Remaining Work fields on any child work items.
If someone went and modified the process template and put the Remaining Work field on your user stories, that would explain what you're seeing. You're filling in a field on your User Story, so it appears in the query view. But in the backlog view, it's summing up all of the remaining work on the child Tasks, of which there appear to be none, so you get no value there.

Related

How to query 'history' field in Team Foundation Server (TFS)?

I am trying to capture the history of changes when a user story is moved from one iteration to another.
I am trying to query in TFS and using the history field, but don't know what values to put in the value field to capture when a user story is moved to a new iteration. See image below.
I am trying to capture the history of changes when a user story is
moved from one iteration to another.
Unfortunately you cannot capture the information as the History filed is not the real change history for all actions. It just records the Discussion History.
And the work item query is to return work items which matched the given conditions from TFS but not the specific history information.
If you just want to get the real history (iteration change information in your scenario) for a specific work item, then you can call the REST API - Get Work item revisions
If you want to filter the work items which have the specific discussion words, then you can specify the words as the value of the History field. Reference below screenshot:

No longer able to aggregate by "Sum" for Dashboard / using "Chart for Work Items"

Working on updating the Dashboard in TFS for a new sprint. I have a chart which shows a "Chart for Work Items" widget with a "Stacked area" chart of all the stories which is stacked by "state". Then, I have the stories plotted using "Aggregation" and "sum" along with "Effort". This worked in the previous sprint. For the current sprint the Configuration area doesn't show "sum" anymore just "count". Showing number of stories isn't as meaningful as number of story point (effort).
(I thought perhaps the stories on my current sprint were generated with a different template and this is what broke the query or configuration tool for the plot. But I moved a story from previous sprint and let it be the only one in the current sprint and that did not work.)
The current version of TFS I'm running is "Version 15.117.27024.0"
Previous sprint (works)
Current sprint (does not allow selecting Sum)
The problem is that you didn't select the appropriated Column Options which are available for Sum action.
Just check the query "Sprint9", make sure you have selected the columns such as: Effort, Remaining work, Completed work etc which are available for Sum action.
In VSTS Column Options aren't just what columns you see on the query page - they reflect fields can be used by the query too.
Open the Column Options menu:
Select Add Column and select field relevant, i.e, Story Points:

TFS Workitem Formula - default value from two fields

Some work items have estimate time, completed time and remaining time but out the box they do not have any defaults.
When editing the Work Item templates using Powertools you can set a default and you can also set a formula (although it seems to be a dropdown list).
How would you set the "remaining work" default value to be Estimated - Completed?
The field formula that is displayed in the field definition window is for other purposes. You can use it to set the forumula that is used by TFS Reporting Services.
It is not possible to set a calculation for remaining work in the workitemtype. You could accomplish this by writing a custom TFS event that is raised when you change the completed work.
I hope this answeres your question.
Regards,
Jeroen Niesen

TFS 2008 Cube Report between two points in time

In TFS 2008, I'd like to be able to create a pivot table/chart to show the difference in a specific field between two given points in time. The reason is we put our initial estimates in at the beginning and then update it to the total number of hours we did against the item when we finish. An obvious answer to this, would be two separate fields, one for initial and one for final, but that isn't how it was set up, so the only way I can pull the data is querying against the history of the work item.
I am up for writing a custom SQL query or updating the cube with a new perspective if necessary, but ideally, I'd like to just pull it together with the TFS cube into excel 2007. I was looking at the Work Item History perspective, but I'm just not seeing anything close enough in there.
The Work Item history in the TFS cube indeed exposes the state of the work item fields over time. You can just select the start and end point in the pivot table connected to the cube datasource as the row or column. On the other axis, select the field you want to display. The values in the table will show the values for the fields in both points in time.

How can I get a report of all work items added to an iteration after a given date?

I need to produce a report, similar to the Unplanned Work report included with the MS Agile Process Template, but which lists me all work items which were added to an iteration after a given date.
The work item may have already been created before that date, so I can't used the created date.
Can anyone give any guidance on how I can go about this? If I can achieve it in Excel then that would be perfect...
Thanks.
Ok, took some work. Interesting enough though to put some effort in it ...
First screenshot is a Pivot table connected to the Analysis Cube. The most left colum shows the ID of a workitem. The second column shows the ChangeDate. In the row header I have included every iteration that I am interested in. What you see happening in the Excel sheet is items moving from one sprint to the other. For example, workitem 27 was created for iteration 1 at 14-3-2011. On 13-4-2011 it was moved to iteration 2. On 12-5-2011 it was moved to iteration 3. etc.
If I narrow down the filter to a specific iteration I actually see items entering the iteration and leaving the iteration. If I also change the ChangeDate filter, I can focus on items entering after a specific date, as you requested. Again, you can see item 27 enter iteration 2 at 13-4 and leave at 12-5. You can juggle around with the columns to get the view you want.
Finally, the options I used to get this view from TFS.
Hope this exceeds your expectations :-)

Resources