diff --git a/plugins/tracker-resources/src/components/sprints/SprintEditor.svelte b/plugins/tracker-resources/src/components/sprints/SprintEditor.svelte index 50f7f920c2..95ae71ff7d 100644 --- a/plugins/tracker-resources/src/components/sprints/SprintEditor.svelte +++ b/plugins/tracker-resources/src/components/sprints/SprintEditor.svelte @@ -55,6 +55,10 @@ $: noParents = issues?.filter((it) => !ids.has(it.attachedTo as Ref)) + $: rootNoBacklogIssues = noParents?.filter( + (it) => issueStatuses.get(it.status)?.category !== tracker.issueStatusCategory.Backlog + ) + const statuses = createQuery() let issueStatuses: Map, WithLookup> = new Map() $: if (noParents !== undefined) { @@ -66,7 +70,7 @@ } $: totalEstimation = floorFractionDigits( - (noParents ?? [{ estimation: 0, childInfo: [] } as unknown as Issue]) + (rootNoBacklogIssues ?? [{ estimation: 0, childInfo: [] } as unknown as Issue]) .map((it) => { const cat = issueStatuses.get(it.status)?.category @@ -93,7 +97,7 @@ }) .reduce((it, cur) => { return it + cur - }), + }, 0), 2 ) $: totalReported = floorFractionDigits(