Вывод подсказки с родителями к задаче для активностей

This commit is contained in:
Pavel Gnedov 2022-11-08 08:05:48 +07:00
parent 22f6f53b45
commit 06c98e0276
2 changed files with 5 additions and 1 deletions

View file

@ -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(

View file

@ -35,7 +35,7 @@
<h3>Активности за период</h3>
<ul>
{{#each this.activities}}
<li>
<li title="{{this.parents}}">
{{>redmineIssueAHref issue=this.issue}} (приоритет {{this.issue.priority.name}}; версия {{this.issue.fixed_version.name}}) - {{this.issue.subject}}
<ul>
{{#each this.changes}}