diff --git a/epictrack-api/src/api/services/work.py b/epictrack-api/src/api/services/work.py index 51f895928..2eea053ed 100644 --- a/epictrack-api/src/api/services/work.py +++ b/epictrack-api/src/api/services/work.py @@ -108,6 +108,7 @@ def _serialize_work(work, work_staffs, works_statuses, work_phase): "eao_team", "title", "is_active", + "project.name" ) ).dump(work) if work_phase and len(work_phase) > 0: diff --git a/epictrack-web/src/components/myWorkplans/Card/CardHeader.tsx b/epictrack-web/src/components/myWorkplans/Card/CardHeader.tsx index 4426f8059..c432474c6 100644 --- a/epictrack-web/src/components/myWorkplans/Card/CardHeader.tsx +++ b/epictrack-web/src/components/myWorkplans/Card/CardHeader.tsx @@ -34,7 +34,7 @@ const CardHeader = ({ workplan }: CardProps) => { whiteSpace: "nowrap", }} > - {workplan.title} + {workplan?.project?.name} diff --git a/epictrack-web/src/models/workplan.tsx b/epictrack-web/src/models/workplan.tsx index 9e1905ae9..14e9e6d8c 100644 --- a/epictrack-web/src/models/workplan.tsx +++ b/epictrack-web/src/models/workplan.tsx @@ -9,6 +9,10 @@ export interface WorkPlan { work_type: WorkType; work_state: string; + project: { + name: string; + }; + phase_info: { days_left: number; milestone_progress: number;