Optional automatic action upon completion: move a task to a "completed tasks" list within the note #2856
Labels
scope: lifecycle of tasks
Issues to do with deletion or moving of tasks upon completion. See also 'scope: managing tasks'
scope: managing tasks
Things such as deleting or moving tasks between files. See also 'scope: lifecycle of tasks'
type: enhancement
New feature or request
🔖 Feature description
(Note: Similar functionality has been submitted in Issues and/or covered in Discussions previously.)
A new, optional task field should be supported by Tasks, to trigger the plugin to act upon a task when it is completed. One such action would entail automatically moving the task to the end of a designated list within the note file.
✔️ Solution
Support could be added for a new, optional task field or attribute. It could be called
Finish
, and signified by a checkered flag emoji 🏁 (or[finish:: ]
in Dataview format). The '`Finish' field should be added to the plugin's Create/Edit Task modal dialog.If the field value is set
to_list
then, when the task is completed, Tasks will automatically move it from its current location within the note file to the end of a list (under the heading### Completed Tasks
, by default) within that same file.For more flexibility, a new option could be added to Tasks' configuration settings: by default, it would display the default list heading shown above; but it would allow the user to change the heading level and text.
A possible later enhancement would support users' specifying a
Finish to_list
heading within a note's YAML front matter that would override the vault-wide setting for completed tasks in that particular note.In any event: if the designated list heading doesn't exist within the note when a task containing
🏁 to_list
is completed, then the plugin will write the heading at the bottom of the note file before writing the first completed task below it.❓ Alternatives
No other currently available plugin performs the desired action automatically when the task is completed.
📝 Additional Context
This issue is being created at the maintainer's direction.
If you want this functionality added to Tasks, please respond to this description with a thumbs up - 👍.
The text was updated successfully, but these errors were encountered: