Skip to content

[Bug] DONE task query returns no results on regular pages but works on Journal pages #12453

@SangIlMo

Description

@SangIlMo

Search first

  • I searched and no similar issues were found

What Happened?

Describe the bug
(task DONE) query works correctly on Journal pages but returns no results when used on regular pages (e.g., a Dashboard page).

Reproduce the Bug

To Reproduce

  1. Set preferred workflow to :now (NOW/LATER)
  2. Create a task in a Journal page and mark it as DONE via checkbox click
  3. Verify the DONE block exists in the journal .md file
  4. Run {{query (task DONE)}} on the same Journal page → results appear correctly
  5. Run the same query on a regular page (e.g., Study Dashboard) → no results

Expected Behavior

Expected behavior
(task DONE) and advanced DataScript queries with [?b :block/marker "DONE"] should return DONE tasks regardless of which page the query is placed on.

Screenshots

No response

Desktop or Mobile Platform Information

No response

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions