fix: activity not coming for blocking/blocked, 'related to' and duplicate (#2189)
* fix: activity not coming for duplicate, relatesd to and for blocked/blocking refactor: mutation logic to use relation id instead of issue id * fix: mutation logic and changed keys to be aligned with api * fix: build error
This commit is contained in:
parent
79bf7d4c0c
commit
f6b92fc953
10 changed files with 142 additions and 98 deletions
20
web/types/issues.d.ts
vendored
20
web/types/issues.d.ts
vendored
|
|
@ -76,8 +76,10 @@ export type IssueRelationType = "duplicate" | "relates_to" | "blocked_by";
|
|||
export interface IssueRelation {
|
||||
id: string;
|
||||
issue: string;
|
||||
related_issue: string;
|
||||
issue_detail: BlockeIssueDetail;
|
||||
relation_type: IssueRelationType;
|
||||
related_issue: string;
|
||||
relation: "blocking" | null;
|
||||
}
|
||||
|
||||
export interface IIssue {
|
||||
|
|
@ -87,20 +89,8 @@ export interface IIssue {
|
|||
assignees_list: string[];
|
||||
attachment_count: number;
|
||||
attachments: any[];
|
||||
issue_relations: {
|
||||
id: string;
|
||||
issue: string;
|
||||
issue_detail: BlockeIssueDetail;
|
||||
relation_type: IssueRelationType;
|
||||
related_issue: string;
|
||||
}[];
|
||||
related_issues: {
|
||||
id: string;
|
||||
issue: string;
|
||||
related_issue_detail: BlockeIssueDetail;
|
||||
relation_type: IssueRelationType;
|
||||
related_issue: string;
|
||||
}[];
|
||||
issue_relations: IssueRelation[];
|
||||
related_issues: IssueRelation[];
|
||||
bridge_id?: string | null;
|
||||
completed_at: Date;
|
||||
created_at: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue