Skip to content

Issue with rollup type rules when PBI/bug only has 1 child task #25

@rodgersk410

Description

@rodgersk410

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 workingfixedBug got fixed or found a solution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions