mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Exclude backlog issues from estimations (#2344)
Signed-off-by: Anton Brechka <anton.brechka@xored.com>
This commit is contained in:
parent
4c1e3b75c9
commit
95eeb37c6c
@ -55,6 +55,10 @@
|
||||
|
||||
$: noParents = issues?.filter((it) => !ids.has(it.attachedTo as Ref<Issue>))
|
||||
|
||||
$: rootNoBacklogIssues = noParents?.filter(
|
||||
(it) => issueStatuses.get(it.status)?.category !== tracker.issueStatusCategory.Backlog
|
||||
)
|
||||
|
||||
const statuses = createQuery()
|
||||
let issueStatuses: Map<Ref<IssueStatus>, WithLookup<IssueStatus>> = 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(
|
||||
|
Loading…
Reference in New Issue
Block a user