Skip to content

Repeating task: done flag stays false after marking complete #2795

@realchrisolin

Description

@realchrisolin

Pre-submission checklist

  • I have searched for existing open or closed issue reports with the same problem.

Description

Pre-submission checklist

  • I have searched for existing open or closed issue reports with the same problem.

Description

When marking a repeating task as done via the REST API, the done field in the API response stays false even though the request explicitly includes "done": true. The done_at timestamp is updated correctly, but the task remains open in all interfaces. This affects all interfaces that use the REST API (web UI, Android app, direct API calls), not just one client.

Steps to reproduce

  1. Create a task with a repeat interval: repeat_after: 86400, repeat_mode: 0
  2. Mark the task as done via the API: POST /api/v1/tasks/{id} {"done": true, "repeat_after": 86400, "repeat_mode": 0, ...}
  3. Observe the response: done is false, but done_at has a new timestamp.

Expected behavior

The task should be marked as done. The API response should reflect done: true.

Actual behavior

The done field remains false whenever repeat_after is present in the task. This is consistent across the web UI, REST API directly, and any client relying on the API response.

Additional investigation

  • Clearing repeat_after to null in the same request as done: true makes done flip to true - the presence of repeat_after blocks the flag.
  • Any subsequent API request that includes repeat_after in the payload (even without touching done) resets done back to false.
  • This appears to be related to v2.3.0 changes to recurring task handling (PR fix: route recurring tasks to default bucket when marked done #2574).

Environment

  • Vikunja version: v2.3.0

Vikunja Version

2.3.0

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiREST API surface, endpoint design, request/response shapesarea/recurring-tasksRepeat rules, recurring task behavior, RRULEconcern/regressionWorked in a prior release, now broken

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions