From 06c98e02762cb40f1515df09bc4030ab9ab5e540 Mon Sep 17 00:00:00 2001 From: Pavel Gnedov Date: Tue, 8 Nov 2022 08:05:48 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D0=BA=D0=B8=20=D1=81=20=D1=80?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8F=D0=BC=D0=B8=20=D0=BA?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D0=B5=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B8=D0=B2=D0=BD=D0=BE=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/reports/daily-eccm.report.service.ts | 4 ++++ views/daily-eccm-report.hbs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/reports/daily-eccm.report.service.ts b/src/reports/daily-eccm.report.service.ts index 15f1e29..0c5315a 100644 --- a/src/reports/daily-eccm.report.service.ts +++ b/src/reports/daily-eccm.report.service.ts @@ -101,6 +101,7 @@ export namespace DailyEccmReport { export type IssueAndChanges = { issue: RedmineTypes.Issue; + parents: string; changes: Change[]; }; @@ -266,8 +267,11 @@ export namespace DailyEccmReport { this.logger.error(`Not found issue data for #${activity.issue_id}`); return false; } + const parents = await this.issuesService.getParents(activity.issue_id); + const parentsHint = GetParentsHint(parents); issueAndChanges = { issue: issue, + parents: parentsHint, changes: [], }; this.logger.debug( diff --git a/views/daily-eccm-report.hbs b/views/daily-eccm-report.hbs index efbdd4d..6b3d305 100644 --- a/views/daily-eccm-report.hbs +++ b/views/daily-eccm-report.hbs @@ -35,7 +35,7 @@

Активности за период