mgmeyers / obsidian-kanban

Create markdown-backed Kanban boards in Obsidian.
https://publish.obsidian.md/kanban/
GNU General Public License v3.0
3.13k stars 177 forks source link

[Feature]: Enable Tasks Plugin Modal in Kanban view #761

Open erik-buchholz opened 1 year ago

erik-buchholz commented 1 year ago

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:

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:

Screenshot 2023-04-15 at 15 12 43 Screenshot 2023-04-15 at 15 12 51

However, in Kanban view, the modal cannot be triggered:

Screenshot 2023-04-15 at 15 21 10
claremacrae commented 1 year ago

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.

KajKandler commented 1 year ago

Some of the integration would be desirable. However, there are a few more things that need to be thought through:

farrerz commented 1 month ago
  • 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.

I don't see why the Kanban view couldn't be updated to properly display/sort using task priority. Obviously it's not currently supported, but I don't see why it is fundamentally incompatible/not possible to add

claremacrae commented 1 month ago

I assume it’s because the Kanban plugin shows tasks in the order that they appear in the markdown file.