[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:
parent
c6909604b1
commit
ae45ff158a
2 changed files with 40 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue