Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom metadata after the "done" date breaks queries #2673

Closed
3 of 7 tasks
abonhote opened this issue Feb 23, 2024 · 2 comments
Closed
3 of 7 tasks

Custom metadata after the "done" date breaks queries #2673

abonhote opened this issue Feb 23, 2024 · 2 comments
Labels
duplicate This issue, pull request or discussion already exists scope: parsing markdown See also 'scope: global filter' type: bug Something isn't working

Comments

@abonhote
Copy link

abonhote commented Feb 23, 2024

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

A task like this

- [x] Test πŸ“… 2024-02-23 βœ… 2024-02-23 πŸ”’ [[2024-02-23]] πŸ•ΈοΈ Inbox

should show up in a query like this:

done on 2024-02-23

or

filter by function task.status.type === 'DONE'
filter by function task.done.moment?.isSame(moment('2024-02-23'), 'day') || false

Current behaviour

It doesn't show up.

Steps to reproduce

copy/paste this into an md file of your choice (or the sandbox with Tasks installed):

```tasks
done on 2024-02-23
```

- [x] Test πŸ“… 2024-02-23 βœ… 2024-02-23 πŸ”’ [[2024-02-23]] πŸ•ΈοΈ Inbox
- [x] Test πŸ“… 2024-02-23 πŸ”’ [[2024-02-23]] πŸ•ΈοΈ Inbox βœ… 2024-02-23

This will only show the second task.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.5.8

Tasks Plugin Version

6.0.0

Checks

  • I have tried it with all other plugins disabled and the error still occurs

Possible solution

Moving the done date to the end solves the issue

@claremacrae
Copy link
Collaborator

Yes, I'm afraid this is a known limitation of Tasks currently.

Putting any text after Tasks emoji or dataview fields prevents the fields from being read.

It's documented in several places in the user guide, the most detailed being in What do I need to know about the order of items in a task? and the following section.

We are already tracking this ordering limitation in issue #1505. Please do up-vote that with πŸ‘. Thanks.

@claremacrae claremacrae closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
@claremacrae claremacrae added scope: parsing markdown See also 'scope: global filter' duplicate This issue, pull request or discussion already exists labels Feb 23, 2024
@abonhote
Copy link
Author

Ok, I see, thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue, pull request or discussion already exists scope: parsing markdown See also 'scope: global filter' type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants