obsidian-kanban
obsidian-kanban copied to clipboard
[Feature]: Enable Tasks Plugin Modal in Kanban view
Goal or desired outcome of this feature
Both the Kanban and the Tasks plugin are among the most used Obsidian plugins. As both target task management, an integration would be desirable. The Tasks plugin is great to organise tasks and assign priorities as well as due dates. The Kanban plugin on the other hand is amazing for the visualisation of tasks and projects. Hence, combining both plugins would be great for all the other users already using both plugins in parallel. A simple way to achieve this would be allowing to trigger the Tasks Plugin's "Creat or edit Task" modal within Kanban view. The Tasks plugin recently exposed an API to trigger this modal from other plugins, such as the kanban plugin. (See link below). An integration of these two plugins has been wished for many times before:
- https://github.com/mgmeyers/obsidian-kanban/issues/548
- https://github.com/obsidian-tasks-group/obsidian-tasks/discussions/183
If this feature has potential to be added to this plugin, I will be happy to help to implement it!
Describe the feature
At the moment, it is not possible to trigger the "Tasks: Create or edit task" modal of the Tasks Plugin while being in the Kanban view as it only work in the standard Markdown view. However, this would be a great way to connect the strengths of the Kanban and the Tasks Plug-in. Recently, the Tasks Plugin exposed the API for other plugins to access the modal. See: https://publish.obsidian.md/tasks/Advanced/Tasks+Api#%60createTaskLineModal()%3A+Promise%3Cstring%3E%3B%60
Hence, it should be possible to allow triggering the modal within a (new) Kanban card in Kanban view.
Can you think of any alternatives or work-arounds?
At the moment tasks fields have to be added manually, which is very cumbersome.
Screenshots, mockups, or videos
This is how the modal look in Markdown view:
However, in Kanban view, the modal cannot be triggered:
Just to add that the function @erik-buchholz mentioned only creates new tasks. There will later be another function that allows editing of existing tasks.
@mgmeyers If you have any problems with this, I'd be really happy to pair with you on it, or set up a call to chat about it.
Some of the integration would be desirable. However, there are a few more things that need to be thought through:
- Date format (@{...} vs 📅 ...) - tried to just change the trigger which does conflict because of the '{}' wrapping
- Single/Double date in Kanban vs multiple dates in Tasks (due date, scheduled date, started date, archived date)
- Auto adding done/archived date would need to be resolved between the two
- Priority is not something compatible with Kanban. Sort your tasks instead with in the list. If you really need this, add tags or make a separate list for priority tasks.
- The lists would ideally be able to set the status of the list item to any value to support custom statuses of the Tasks plugin