Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

fix: fetch root tasks for kanban

Nikolai Giman3c49941693e4
diff --git a/api/src/tv-modules/tasks/TasksRepository.ts b/api/src/tv-modules/tasks/TasksRepository.ts
index 6bef241..9664edf 100644
--- a/api/src/tv-modules/tasks/TasksRepository.ts
+++ b/api/src/tv-modules/tasks/TasksRepository.ts
@@ -648,6 +648,7 @@ export class TasksRepository {
eq(TasksSchema.goalId, goalId),
columnId === null ? isNull(TasksSchema.statusId) : eq(TasksSchema.statusId, columnId),
isNotNull(TasksSchema.kanbanOrder),
+ isNull(TasksSchema.parentId),
];
if (cursor !== null) {
conditions.push(gt(TasksSchema.kanbanOrder, cursor));