Add Epic issue type and enhance issue detail display with epic-related information
This commit is contained in:
@@ -27,6 +27,7 @@ export class IssueDetail {
|
||||
];
|
||||
|
||||
protected readonly typeOptions: IssueEntity['type'][] = [
|
||||
'Epic',
|
||||
'Bug',
|
||||
'Study',
|
||||
'Story',
|
||||
@@ -59,6 +60,18 @@ export class IssueDetail {
|
||||
this.issue.type = value;
|
||||
}
|
||||
|
||||
protected get epicIssues(): IssueEntity[] {
|
||||
return this.issues().filter((issue) => issue.type === 'Epic');
|
||||
}
|
||||
|
||||
protected get composedIssues(): IssueEntity[] {
|
||||
return this.issues().filter((issue) => issue.dependsOnIds.includes(this.issue.id));
|
||||
}
|
||||
|
||||
protected get isEpicIssue(): boolean {
|
||||
return this.issueTypeValue === 'Epic';
|
||||
}
|
||||
|
||||
protected saveIssue(): void {
|
||||
this.issuesStore.upsert(this.issue);
|
||||
if (this.isNewIssueRoute) {
|
||||
|
||||
Reference in New Issue
Block a user