From f7bd1389f0dfbaea712f4ec652ab7c4d57b51a59 Mon Sep 17 00:00:00 2001 From: Sergei Ogorelkov Date: Tue, 5 Jul 2022 01:13:15 +0700 Subject: [PATCH] Fix "SetParent", "Add sub-issue" and "Set Due date" actions (#2185) --- models/tracker/src/index.ts | 20 +++++++++++++++----- plugins/tracker/src/index.ts | 1 + 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/models/tracker/src/index.ts b/models/tracker/src/index.ts index c0f71b01cf..1f84191c2f 100644 --- a/models/tracker/src/index.ts +++ b/models/tracker/src/index.ts @@ -595,7 +595,8 @@ export function createModel (builder: Builder): void { component: tracker.component.CreateIssue, element: 'top', fillProps: { - _object: 'parentIssue' + _object: 'parentIssue', + space: 'space' } }, label: tracker.string.NewSubIssue, @@ -610,7 +611,7 @@ export function createModel (builder: Builder): void { group: 'associate' } }, - tracker.action.SetParent + tracker.action.NewSubIssue ) createAction( @@ -619,7 +620,10 @@ export function createModel (builder: Builder): void { action: view.actionImpl.ShowPopup, actionProps: { component: tracker.component.SetParentIssueActionPopup, - element: 'top' + element: 'top', + fillProps: { + _object: 'value' + } }, label: tracker.string.SetParent, icon: tracker.icon.Parent, @@ -641,7 +645,10 @@ export function createModel (builder: Builder): void { actionPopup: tracker.component.SetParentIssueActionPopup, actionProps: { component: tracker.component.SetParentIssueActionPopup, - element: 'top' + element: 'top', + fillProps: { + _object: 'value' + } }, label: tracker.string.SetParent, icon: tracker.icon.Parent, @@ -790,7 +797,10 @@ export function createModel (builder: Builder): void { actionProps: { component: tracker.component.SetDueDateActionPopup, props: { mondayStart: true, withTime: false }, - element: 'top' + element: 'top', + fillProps: { + _object: 'value' + } }, label: tracker.string.SetDueDate, icon: tracker.icon.DueDate, diff --git a/plugins/tracker/src/index.ts b/plugins/tracker/src/index.ts index 89d292bcc7..0cedc7e3e2 100644 --- a/plugins/tracker/src/index.ts +++ b/plugins/tracker/src/index.ts @@ -287,6 +287,7 @@ export default plugin(trackerId, { CopyIssueLink: '' as Ref, MoveToTeam: '' as Ref, Relations: '' as Ref, + NewSubIssue: '' as Ref, EditWorkflowStatuses: '' as Ref }, team: {