obsidian-task-archiver icon indicating copy to clipboard operation
obsidian-task-archiver copied to clipboard

Adding metadata breaks tasks-plugin queries

Open abonhote opened this issue 1 year ago β€’ 3 comments

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 avatar Feb 23 '24 07:02 abonhote

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

abonhote avatar Feb 23 '24 07:02 abonhote

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!

genyuz avatar Mar 22 '24 10:03 genyuz