diff --git a/web/components/custom-attributes/attributes-list/issue-modal-attributes-list.tsx b/web/components/custom-attributes/attributes-list/issue-modal-attributes-list.tsx index 65b927e81..0b708f245 100644 --- a/web/components/custom-attributes/attributes-list/issue-modal-attributes-list.tsx +++ b/web/components/custom-attributes/attributes-list/issue-modal-attributes-list.tsx @@ -178,7 +178,7 @@ export const IssueModalCustomAttributesList: React.FC = observer((props) issueId={issueId} onChange={(val) => onChange(attribute.id, val)} projectId={projectId} - value={attribute.default_value !== "" ? attribute.default_value : undefined} + value={values[attribute.id]?.[0]} multiple={false} /> )} diff --git a/web/components/issues/modal.tsx b/web/components/issues/modal.tsx index 75804abcc..350fbad0b 100644 --- a/web/components/issues/modal.tsx +++ b/web/components/issues/modal.tsx @@ -529,6 +529,7 @@ export const CreateUpdateIssueModal: React.FC = observer( status={data ? true : false} user={user} fieldsToShow={fieldsToShow} + customAttributesList={customAttributesList} handleCustomAttributesChange={handleCustomAttributesChange} handleFormDirty={handleFormDirty} /> diff --git a/web/services/issues.service.ts b/web/services/issues.service.ts index 37d2c3b73..fd845fcb5 100644 --- a/web/services/issues.service.ts +++ b/web/services/issues.service.ts @@ -88,7 +88,9 @@ class ProjectIssuesServices extends APIService { } async getIssueProperties(workspaceSlug: string, projectId: string): Promise { - return this.get(`/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`) + return this.get( + `/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/` + ) .then((response) => response?.data) .catch((error) => { throw error?.response?.data; @@ -191,7 +193,7 @@ class ProjectIssuesServices extends APIService { async createIssueProperties(workspaceSlug: string, projectId: string, data: any): Promise { return this.post( - `/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/`, + `/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/`, data ) .then((response) => response?.data) @@ -207,7 +209,7 @@ class ProjectIssuesServices extends APIService { data: any ): Promise { return this.patch( - `/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-properties/` + + `/api/workspaces/${workspaceSlug}/projects/${projectId}/issue-display-properties/` + `${issuePropertyId}/`, data )