mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
UBERF-5335 (#4655)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user