diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index 82d5519..292ae4d 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -185,6 +185,15 @@ export async function GET(request: NextRequest) { throw new Error('Invalid response format from Leantime'); } + // Log RAW data from Leantime to see exact status values (using console.log so it shows in production) + console.log('[LEANTIME_TASKS] 🔍 RAW DATA FROM LEANTIME API:', JSON.stringify(data.result.map((task: any) => ({ + id: task.id, + headline: task.headline, + status: task.status, + statusType: typeof task.status, + editorId: task.editorId, + })), null, 2)); + // Log detailed status information before filtering const statusBreakdownBefore = data.result.reduce((acc: any, task: any) => { const status = task.status;