Description
When using basecamp todos list with both --list and --assignee flags, the --assignee filter is silently ignored. Todos are returned without being filtered by the specified assignee.
Steps to Reproduce
basecamp todos list --in 25151xxx --list 5200146xxx --assignee me
Expected Behavior
Only todos assigned to the current user (or specified assignee) should be returned.
Actual Behavior
All todos from the specified todolist are returned, ignoring the --assignee filter.
Root Cause
In internal/commands/todos.go, when a --list flag is provided, the code calls listTodosInList() which does not accept or apply the assignee filter:
- Line 361-362: The flags.assignee is not passed to listTodosInList:
if todolist != "" {
return listTodosInList(cmd, app, project, todolist, flags.status, flags.limit, flags.page, flags.all)
}
- Line 375: listTodosInList function signature lacks an assignee parameter:
func listTodosInList(cmd *cobra.Command, app *appctx.App, project, todolist, status string, limit, page int, all bool) error
Meanwhile, listAllTodos correctly receives and applies the assignee filter.
Environment
- basecamp-cli version: (0.4.0)
- OS: Omarchy
Description
When using
basecamp todos listwith both--listand--assigneeflags, the--assigneefilter is silently ignored. Todos are returned without being filtered by the specified assignee.Steps to Reproduce
Expected Behavior
Only todos assigned to the current user (or specified assignee) should be returned.
Actual Behavior
All todos from the specified todolist are returned, ignoring the --assignee filter.
Root Cause
In
internal/commands/todos.go, when a --list flag is provided, the code calls listTodosInList() which does not accept or apply the assignee filter:Meanwhile, listAllTodos correctly receives and applies the assignee filter.
Environment