Skip to content

Feature request: reopen completed tasks via gws tasks CLI #187

@omriariav

Description

@omriariav

Problem

There is no documented way to reopen a completed task via gws tasks. The Google Tasks API supports setting status: "needsAction" to reopen a task, but the CLI does not expose this.

Additionally, I observed a behavior where calling gws tasks update <list-id> <task-id> --due ... --notes ... (without explicitly invoking complete) appears to have toggled the task's status to completed. I cannot reproduce a deliberate complete call in my command history that would explain it. Documenting this here in case it is a known issue or quirk worth investigating.

What I tried

  1. gws tasks update <list-id> <task-id> --title "..." → returns success but task status remains completed.
  2. gws tasks update <list-id> <task-id> --due "..." → same.
  3. There is no gws tasks reopen or --status flag visible in gws tasks update --help.

Workaround today: delete the closed task and create a new one with the same content (loses task ID and any external references).

Suggested fixes

  1. Most useful: add a gws tasks reopen <list-id> <task-id> command (mirror of gws tasks complete) that sets status: "needsAction" via the Tasks API.
  2. Alternatively, expose --status needsAction|completed on gws tasks update.
  3. Document whether gws tasks update is supposed to preserve the existing status field, and investigate the case where it appeared to flip a task to completed without an explicit complete invocation.

Environment

  • macOS Darwin 25.3.0
  • gws version: please run gws version if reproducing
  • Date observed: 2026-05-07

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions