More Options for saved Filters

Hi,
I think it would be cool, to have more options for saved Filters like chaining different different filter-parameter. Aditionally a dynamic Today option, which follows the actual today date) for the Due-Date would be nice.

Example UseCase:
Having a Saved Filter named Today, that includes all Todos that are due today from the private Namespaces and all Todos that are assigned to me from the shared Lists.

2 Likes

What do you mean with the chaining? You can already have a filter with multiple parameters to filter by.

I agree a filter with a dynamic “today” field would make a great addition. I’ve added it to the backlog.

Hi
I have a namespace with my private todos and a second namespace, that is shared with some collegues. On the shared list tasks are assigned to the different Members. On my private List I currently do not assign the Tasks to me as I’m the only Person able to access this list (im assigned implicitly).

I think it would be cool to have a saved Filter called Today which is pulling all due-tasks from my private list (where all Tasks are implicitly assigned to me) and all tasks from the shared List that are explicitly assigned to me. So the filter has to have two different internal filters connected together.

Something like this:
Show all Tasks that are due today from my_private_namespace OR Show all Tasks that are due today and are assigned to me from shared namespace.

I see. I think I understand the use case but that would be a very complicated addition (not only on the api side but on the frontend/ux side as well). Maybe worth adding at some point in the future. I don’t see it happening any time soon though. (That is, unless you’re willing to put a PR together :upside_down_face:

I’m sure this feature when implemented will ease a lot of new users from other platforms (at least that’s my experience with a lot of colleagues).

For Vikunja to be able to compete with other tool, such as Todoist, dynamic dates such as Today, Tomorrow etc are very good but not complete !

For more completeness, due before, due after dynamic dates should also be implemented.

Here you can see a full documentation of various dynamic filters, which I hope will help you on implementing this !

https://todoist.com/help/articles/introduction-to-filters

3 Likes

Since dynamic dates are now implemented (yay!) there are just a few things more to have perfect filters in Vikunja:

  • Editing bugs: If I try to edit an existing filter, the conditions are all reset and the List filter option does not appear even
  • Better conditionals:
  1. Negative conditions: Search tasks in all lists except these 2 for example (this great for people that have a lot of lists)

  2. Add or and and conditions. This solves a lot of problems, I can give an example: Today’s work tasks: I want to filter tasks which are on #PhD or #Work but that have due date or start date.
    Currently I can only select to either have those tasks filtered for today based on their due date or on their start date. If I select the two, these conditions apply at the same time and only a tiny fraction of my tasks will have this condition

Other apps which have implemented this right: Tasks.org and Todoist:

  • Tasks: The way to construct filter’s there is with or , and etc selecting each variable (due date, tag, list, etc). It can also have two concurrent conditions for each filter
  • Todoist: Todoist uses a more basic approach like 7 days & #Work & Assigned to: Mary Smith

Thank you so much for the amazing work !

1 Like

Ideally, I’d like to implement something like meilisearch’s filters. An easy way to achieve this would be to implement a pass-through into Vikunja which leaves parsing and evaluating the filter to meilisearch. A downside to this approach would be the additional dependency when you want to host Vikunja.

Added a task to the backlog to fix the editing a filter bug.

1 Like

Thanks for the reply @kolaente. The meilisearch implementation might be a bit overkill due to complicating the installation process I think. Couldn’t the current implementation support not conditionals ? If so, this would solve the problem !

The current implementation could support not conditions, but it would make everything more complex and probably even worse to use than it already is. Ideally I’d like to implement something like meilisearch’s conditions but without the additional dependency.

2 Likes

Is there a way to use the “Created” and “Updated” dates in filters? I am trying to list e.g. all stale entries that were added over 30 days ago but haven’t been updated in the last 7 days.

The api supports it, there’s just no way (yet) in the frontend to use it. I’ve added an item to the backlog.

3 Likes

I have to concur this is a vital feature!
I would like to see all tasks in a few projects which I manage, and all tasks assigned to me anywhere.
And another view with all unassigned tasks plus all tasks assignment to me.

Since the current filters are essentially very in-depth AND filters, I think a good workaround would be the ability to combine multiple of these with a simple OR. Not as convenient, but makes almost anything possible.

Ideally, I’d like to have something like this: https://docs.meilisearch.com/learn/advanced/filtering.html#conditions or Traefik Routers Documentation - Traefik

I would really like to see the logical operators implemented. I used to use GTD before Vikunja,

I use labels as contexts and have saved filters for them… and i.e. something like NOT in “Someday/Maybe” list or label would be a great thing for the wonderful saved filters.

Regards

Are you telling me that there is already a way to save filters for easy reuse? How do you do this?

I just posted a feature request about being able to save filters :slight_smile:

Hello. Yes, of course. You can have filters saved, like this

You can create them from the Namespaces & List page

Regards.

Wow, that is super embarrassing. I have been using vikunja for more than 2 years but I only have a handful of namespaces. I’ve only use that page a handful of times – I only go to the sidebar menu to change namespaces.

I think you should be able to save a filter wherever you can create one.

You mean edit it after creating? Or have a button in every filter popup so that you don’t need to open the namespaces list to create a new one?

I was thinking there should be “Apply” and “Save & Apply” buttons on the filter pop-up on the list page, but then I realized there are no buttons at all there. It just seems weird to me that you have to go to a completely different page to save the filter, and then come back to the original list to see it applied.

Perhaps a “Save” checkbox and a “Name” text field at the top or bottom of the filter pop-up?

Also, I think we should be able to save filters for a single namespace or list project hierarchy, and not necessarily globally, because they don’t always make sense across all namespaces or lists projects. Similar to my argument for “local” labels.