ivan-lednev / obsidian-task-archiver

Archive completed tasks in your Obsidian vault (plus other org-mode-like features)
MIT License
116 stars 12 forks source link

Adding metadata breaks tasks-plugin queries #84

Open abonhote opened 8 months ago

abonhote commented 8 months ago

I'm using the default "metadata to append":

πŸ”’ [[{{date}}]] πŸ•ΈοΈ {{headingChain}}

I archived this task today:

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

I expect this taks to appear in this tasks query:

done on 2024-02-23

It doesn't. Removing the added metadata, or moving it right after the task text solves the problem.

Any idea is very welcome.

abonhote commented 8 months ago

Probably a tasks thing, opened a ticked there. https://github.com/obsidian-tasks-group/obsidian-tasks/issues/2673

genyuz commented 7 months ago

It seems that the tasks behavior is on intention (probably for performance reasons). Wouldn't it be possible, to extend the Task-Archivers "Append some metadata ..."-feature with the option to define where the metadata shall be added? If one was able to set the meta data to be added at the beginning of the task the task-queries would not break.

eg.

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

could optionally become:

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

or even better before the tasks-dates:

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

BTW even without the add-metadata-feature (which is unfortunately currently not usable together with the tasks-plugin) the Task-Archiver is a great plugin that makes daily work much more easier when working with lots of recuring tasks. THANKS!