Filter completed Items in various task relation situations

I am a very intensive user of task relations.
Especially I sort all my tasks in a large parent<->subtask tree. Often parents (projects like e.g. “Work” are much longer running than their children (e.g. “prepare for meeting next monday”)
The longer I use vikunja the more I am collecting completed tasks. This is increasingly becoming a problem in three places:

  1. The recently massively improved list view (thanks for that) shows the subtask tree. However filtering the tree (e.g. by done=false) does only filter the top level not the subtasks.
  2. When adding a task relation completed tasks clog the search suggestions.
  3. Task relation listings in tasks can get very long with lots of completed subtasks.

I have sorted these by how much they affect me. I am not exactly sure what to do about this. I personally would probably prefer to just filter out completed tasks at all this places by default but I can see how that could be confusing.

1 Like

There are plans to change that.

Which search do you mean?

Great!

I mean that in the task relation dialog there is the field to select the task to relate to. That search field also searches through completed tasks.

1 Like

Gotcha, that should be possible to add (or rather, show done tasks last, like with the global search)

It’s a relatively simple change, happy to accept a PR.

Doesn’t it already show the done tasks last?

Huh, yeah, sorry. No clue whether that’s new or if I just didn’t understand it before. That’s a nice solution.

Maybe we can do the same thing for showing task relations within the task view? I guess sorting within one relation category would be an easy win but I would maybe even first group by completion and then sort by category.

Sorting by category is certainly possible. That would be an easy PR as well :upside_down_face:

1 Like