chore: link edit functionality (#1895)

This commit is contained in:
Anmol Singh Bhatia 2023-08-18 12:03:31 +05:30 committed by GitHub
parent d74ec7bda9
commit c3c6ba9e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 220 additions and 48 deletions

View file

@ -459,6 +459,29 @@ class ProjectIssuesServices extends APIService {
});
}
async updateIssueLink(
workspaceSlug: string,
projectId: string,
issueId: string,
linkId: string,
data: {
metadata: any;
title: string;
url: string;
},
): Promise<any> {
return this.patch(
`/api/workspaces/${workspaceSlug}/projects/${projectId}/issues/${issueId}/issue-links/${linkId}/`,
data
)
.then((response) => response?.data)
.catch((error) => {
throw error?.response;
});
}
async deleteIssueLink(
workspaceSlug: string,
projectId: string,