Tracker: parent issues name (#2136)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov
2022-06-27 13:04:26 +07:00
committed by GitHub
parent a74ae0ee89
commit 6f0bd0a6fe
14 changed files with 225 additions and 49 deletions
@@ -54,7 +54,8 @@
priority: IssuePriority.NoPriority,
dueDate: null,
comments: 0,
subIssues: 0
subIssues: 0,
parents: []
}
}
@@ -94,7 +95,8 @@
...newIssue,
title: getTitle(newIssue.title),
number: (incResult as any).object.sequence,
rank: calcRank(lastOne, undefined)
rank: calcRank(lastOne, undefined),
parents: [{ parentId: parentIssue._id, parentTitle: parentIssue.title }, ...parentIssue.parents]
}
const objectId = await client.addCollection(