2021-09-04T22:39:29.5652638+05:30: WEB ▶ ::1 GET 404 /api/v1/lists/-2/buckets?filter_concat=and&per_page=25&page=1 500.9µs
SQL Logs
2021-09-04T22:53:36.6239434+05:30: INFO ▶ [DATABASE] 1a95 [SQL] SELECT `id`, `notifiable_id`, `notification`, `name`, `read_at`, `created` FROM `notifications` WHERE (notifiable_id = ?) ORDER BY id DESC LIMIT 50 [1]
2021-09-04T22:53:36.6239434+05:30: INFO ▶ [DATABASE] 1a96 [SQL] SELECT count(*) FROM `notifications` WHERE (notifiable_id = ?) [1]
Yeah Kanban is not supported for filters. The problem is that you set kanban buckets per list so if you view a bunch of tasks through the filter, it is not clear which buckets to show. We could just show all buckets of all lists in that filter but that would be too much once you have tasks from a few lists with a few buckets each.
Another option to solve this would be to add an option to configure kanban buckets globally or per namespace or something else. Or to configure them per filter, but that would get hard to manage on the api side of things because of the way buckets are currently implemented.
What I was thinking was something like requiring all lists to have the same buckets to have Kanban boards. But maybe being able to configure it per namespace might be a better idea
Ability to create kanban board templates and add those templates to lists?
Example Workflow:
Go to a specific list
Click “manage boards for this list”
Click “Add New Board”
Two Options:
from an existing template
create new
Select “from an existing template”
(ie todo/doing/done template uses buckets)
(ie each column is one filter uses labels)
alternative: Maybe we get rid of buckets and just use create labels for todo/doing done
The kanban for each list should have a dropdown that lets you select what type of board “view” you want.
I use gitlab at work for task management and find it very powerful to use kanban boards that are powered columns that correspond to labels. They let you create multiple views per board (in this case each list would have several kanban board “views”
Different “views” of the same “objects/tasks”
I should also note that gilab has key/value label feature denoted by :: (ie setting a label to priority::2-high would automatically remove the label of priority::1-critical) Note also that not all labels/tags need to have keys. Some can just be values that stack.
Because of this, for a given project my workflow depends on the verb I am executing.
Example:
If my desired verb is to “prioritize” the first columns show all open issues that are not prioritized, the second third fourth and fifth columns correspond to the labels priority::1-criticalpriority::2-highpriority::3-mediumpriority::4-low. The end state after executing the “prioritize” verb is that I have four columns of tasks that are both open and prioritized.
Then I move to the next step in my workflow which is the verb “assign priority one tasks”. This board is a different “view” of the same list. The first column is open issues that are also labeled priority::1-critical and the next three columns would be assignees on my team (so in this case, not labels, but you get the point) I can then drag and drop unassigned priority one tasks to assignees and the end state will be that issues have both the priority tag and an associated assignee.
Another view would be a column for each assignee that shows all closed priority 1 tasks etc.
and maybe another for tasks that are both tagged with priority::1-critical AND bug
I realize this is a huge request lol. Just wondering if Vikunja was ever going to head towards label based columns or multiple boards per list and then explain the value I think they have. Thanks much for your time!
@tim1210 What you’re proposing sounds like it could work, but as you noted it’d be a pretty big feature request. I think I understand where this could add value.
As of right now, I’d like to keep the current way of putting tasks into fixed buckets not depending on a label. I think that’s a concept that’s generally easier to understand.
I like the idea of key/value labels, I think that could solve other problems people reported. That could be implemented independently from moving buckets though.
Or maybe this could be done on a per list basis? Adding a switch to say “display the kanban boards based on buckets or based on this set of labels”.
I agree with the two different modes one. Simple buckets probably cover a lot of general use cases and will scratch the itch for a lot of people. Then for crazy people like me some sort of “enable advanced mode” checkbox or mode etc.
Views are not independent of projects - you can create a kanban view for a filter and then add tasks in buckets as you would on a list. Please test it in the latest unstable build.
Hello! I pulled down the unstable build via Docker (sha256:3c8378b34297fca6e9b98fed44d0052dfaba799d00bd4644241e4882d42dfde9) but I can’t seem to get this working.
I’ve created a structure where I have a “Parent” Project with several “Children” Projecs. Within the Kanban board for each Project, I have the default “Backlog” Bucket and new “In-Progress” and “Done” Buckets. Inside the parent and two children, I’ve created a sample task in each Bucket.
However, I can’t get a unified Kanban board no matter what I try:
I created a Saved Filter that queries each of my boards by querying over the project field, but I can’t. I tried both project=Parent Board || project=Child Board 1 || project=Child Board 2 and project in Parent Board,Child Board 1,Child Board 2, but I can’t reliably even get them to save or edit once saved.
I created a Saved Filter that queries each of the boards (query: done = false || project_id ?= 4,5,6,7,8,3). This shows all the tasks in the List, Gantt, and Table views, but the Kanban view is empty. (Side note: I can’t edit the query - it’ll revert whenever I try to change it).
I created a Saved Filter that queries all boards (query: done = false). This shows all the tasks in the List, Gantt, and Table views and shows a unified Backlog bucket containing tasks from all of the boards but the other buckets don’t show up. I can manually create the “In-Progress” and “Done” buckets, but neither will show any data.
I can’t create Views in a Saved Filter, so no luck there.
I tried creating a View in the “Parent” Project using the query project_id ?= 4,5,6,7,8,3, but it won’t show any tasks. I tried both the List and Kanban views. If I change the project_id to just the “Parent” project then it works, but that isn’t very helpful ;).
Following up here! I tried to simplify my structure, abandoning having multiple Projects. In my single Project, I created the same Kanban Buckets (“Backlog”, “In-Progress”, and “Done”). I then created a View of type Kanban, but I can’t figure out how to configure it.
If I set mode to “Manual”, no Bucket show up and I can’t figure out how to create them.
If I set mode to “Filter”, I can’t figure out how to query by the bucket in the “normal” Kanban view. If I query by a random property (like “done” or whatever), then I can at least get a bucket to show up. But I can’t seem to move tasks around even in this view, so I don’t think “Filter” is what I’d want.
Hello. Firstly, thank you for your awesome project. The decoupling of views and project seems to be an awesome direction as it will allow for new custom views
I was looking for this feature specifically (kanban board) to help me organise my next tasks globally or by projects+subprojects : columns for next month, week, day, hour, …
Like Jacob, I can’t get the buckets on filter to work (on try.vikunja.org). Each time I try something, it says “this bucket doesn’t exist”. Is this feature still planned or should I look for a workaround ?
(like using an unified project with tags for everything, which would be a bit messy )
Which Vikunja version are you using? You can view it in the “about” menu, reachable from your username on the top right.
Is there an error message?
That’s a bug. I’ll take a look. It’s probably what causes most of the confusion here - sorry about that.
You need to create buckets for the kanban view - similar to how you would create them in a project. Another option is to set the bucket mode to “filter” and create each bucket based on a filter.
Buckets are individual per project or saved filter, not inherited from the project a filter may be based on.
That sounds like a bug. Does it happen every time?
Are you able to create the buckets in the kanban view then?
Filter is meant for when you want to dynamically create buckets based on a property. That could be anything.
Can you reproduce any of the bugs you mentioned on try?
That should work. What exactly did you do? Can you provide clear steps to reproduce the problem?
For clarification, the issue I have is not with kanban with mode “filter”. Thus, I’m not sure it is the same use case as jacob, and not even sure if it is possible to do.
What I want to achieve is to have a global view of tasks that are in the “next” bucket for several project or for a project and its sub-projects (and ideally, be able to move them directly from this global view).
The steps to reproduce an error I have.
Create a new project “my_awesome_project”
Create a new filter “my_awesome_project_filter” with filter done = false && project in my_awesome_project
Create a bucket “next” in “my_awesome_project”
Create a task “do things” in the “next” bucket from the kanban view.
Create a bucket “next” in “my_awesome_project_filter”
Nothing appears in the kanban (the filter works since I can see tasks in the list view)
When I did things in different order and with a sub-project, I somehow could see tasks in the kanban, but one is duplicated and the newly created tasks do not appear.
Those are views from a saved filter done = false && project in my_proj_with_subproj,subproj
I cannot reproduce, but if you want me to reproduce this case and if I find time, I can write scripts to test different orders of action using the API.
And when I create or move tasks on the kanban on the saved filter (when tasks show up) I have error messages “This project does not exist” and “This bucket does not exist”. I guess that this is intended since it’s a view
Ok, thank you for your answer. I was trying to do something impossible, this is why it is not working
What I don’t understand is how to use the kanban in unstable version in saved filters.
In the stable version, the kanban view was empty. But on try.vikunja.io I can create buckets but cannot use them : it is not possible to move tasks, set a column to done or set the kanban mode to filter.
Is there a use of the kanban view in saved filters ?