[WEB-1983] fix: intake cycle and module operation and intake api updated (#5155)

* chore: added assignees and labels in the inbox api

* fix: intake issue cycle and module add operation

---------

Co-authored-by: Anmol Singh Bhatia <anmolsinghbhatia@plane.so>
This commit is contained in:
Bavisetti Narayan 2024-07-22 16:47:16 +05:30 committed by GitHub
parent c6909604b1
commit ae45ff158a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 3 deletions

View file

@ -176,6 +176,21 @@ export class InboxIssueStore implements IInboxIssueStore {
set(this.issue, issueKey, issue[issueKey]);
});
await this.issueService.patchIssue(this.workspaceSlug, this.projectId, this.issue.id, issue);
if (issue.cycle_id) {
await this.store.issue.issueDetail.addIssueToCycle(this.workspaceSlug, this.projectId, issue.cycle_id, [
this.issue.id,
]);
}
if (issue.module_ids) {
await this.store.issue.issueDetail.changeModulesInIssue(
this.workspaceSlug,
this.projectId,
this.issue.id,
issue.module_ids,
[]
);
}
// fetching activity
this.fetchIssueActivity();
} catch {