rule sum
when Estimate.changed && subtask of.isNotEmpty {
var parent = issue.subtask of.first;
var sum = 0;
for each children in parent.parent for {
sum = sum + children.Estimate;
}
parent.Estimate = sum;
}
The desired workflow is attached to the issue JT-18128. To use it download .zip file, import on the 'workflows' screen in YouTrack and attach to a needed project.
rule sum when Estimate.changed && subtask of.isNotEmpty { var parent = issue.subtask of.first; var sum = 0; for each children in parent.parent for { sum = sum + children.Estimate; } parent.Estimate = sum; }Still, I suppose that this feature should be built-in for agile projects.