feat(task-reporter): add reporter field to task data structure

- Introduced a new 'reporter' field in the task data structure for both backend and frontend task management.
- Updated the tasks-controller to include the reporter information when transforming task data.
- Modified the fetchTasks and fetchTasksV3 functions to handle the reporter field, ensuring it defaults to undefined when not present.
This commit is contained in:
chamikaJ
2025-07-09 13:01:51 +05:30
parent 10c53d954e
commit fadc115412
2 changed files with 3 additions and 0 deletions

View File

@@ -189,6 +189,7 @@ export const fetchTasks = createAsyncThunk(
attachments_count: task.attachments_count || 0,
has_dependencies: task.has_dependencies || false,
schedule_id: task.schedule_id || null,
reporter: task.reporter || undefined,
}))
);
@@ -302,6 +303,7 @@ export const fetchTasksV3 = createAsyncThunk(
attachments_count: task.attachments_count || 0,
has_dependencies: task.has_dependencies || false,
schedule_id: task.schedule_id || null,
reporter: task.reporter || undefined,
};
return transformedTask;