Skip to content

Use POST /api/tasks/query for list filtering#5

Open
Luiz-N wants to merge 1 commit intocallumalpass:mainfrom
Luiz-N:codex/use-tasks-query-for-listing
Open

Use POST /api/tasks/query for list filtering#5
Luiz-N wants to merge 1 commit intocallumalpass:mainfrom
Luiz-N:codex/use-tasks-query-for-listing

Conversation

@Luiz-N
Copy link

@Luiz-N Luiz-N commented Feb 14, 2026

TaskNotes API now rejects filtered GET /api/tasks requests (HTTP 400 instructs to use POST /api/tasks/query).

This change updates TaskNotesAPI.listTasks() to convert the CLI's legacy query-param filters into a FilterQuery and call POST /api/tasks/query instead.

Verified locally:

  • tn list works
  • tn list --today works
  • tn list --filter "scheduled:2026-02-14" works

Fixes the same failure described in #3 when running tn list against newer TaskNotes HTTP API versions.

victoraraujo105 pushed a commit to victor-software-house/tasknotes-cli that referenced this pull request Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant