-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Labels
bugSomething isn't workingSomething isn't workingfixedBug got fixed or found a solutionBug got fixed or found a solution
Description
I added a simple rollup rule to calculate Completed Work / Original Estimate on PBI/bug. This works for PBI's and bugs which have multiple child tasks but when there's only 1 child it fails. Failures return 501 Not Implemented with error "The given key 'False' was not present in the dictionary.". I think the Children relation is the issue.
Here's my rule for Original Estimate:
if (self.Parent != null)
{
var parent = self.Parent;
parent["Microsoft.VSTS.Scheduling.OriginalEstimate"] = parent.Children.Sum(task => Convert.ToDouble(task["Microsoft.VSTS.Scheduling.OriginalEstimate"]));
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixedBug got fixed or found a solutionBug got fixed or found a solution