Skip to content

--assignee flag ignored when listing todos with --list #285

@cesarho

Description

@cesarho

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:

  1. 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)
   }
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions