Calcule du temps estimé des Milestone et Epic

This commit is contained in:
2026-05-30 06:59:54 +02:00
parent e81d465903
commit b1a114aaa8
6 changed files with 119 additions and 1 deletions
@@ -110,6 +110,13 @@ export class MilestoneDetail {
return tasks;
}
protected get totalEstimatedTime(): number | null {
const times = this.linkedIssues
.filter((i): i is IssueEntity & { estimatedTime: number } => i.estimatedTime !== null)
.map((i) => i.estimatedTime);
return times.length === 0 ? null : times.reduce((a, b) => a + b, 0);
}
protected get progress(): number {
if (this.linkedIssues.length === 0) return 0;
return Math.round(