UBERF-5335 (#4655)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-02-16 01:24:03 +07:00
committed by GitHub
parent e8dd69dcef
commit 9b0e67b0ee
5 changed files with 55 additions and 23 deletions
+11 -2
View File
@@ -225,6 +225,7 @@ export async function OnIssueUpdate (tx: Tx, control: TriggerControl): Promise<T
const parents: IssueParentInfo[] = parentIssue.map((it) => ({
parentId: it._id,
parentTitle: it.title,
identifier: it.identifier,
space: it.space
}))
updateIssueParentEstimations(
@@ -358,9 +359,17 @@ async function doIssueUpdate (
{ limit: 1 }
)
const updatedParents =
const updatedParents: IssueParentInfo[] =
newParent !== undefined
? [{ parentId: newParent._id, parentTitle: newParent.title, space: newParent.space }, ...newParent.parents]
? [
{
parentId: newParent._id,
parentTitle: newParent.title,
space: newParent.space,
identifier: newParent.identifier
},
...newParent.parents
]
: []
function update (issue: Issue): DocumentUpdate<Issue> {