Change or add filter behavior (tags, categories)

Requests for additional software features

Moderators: abstr, Niko

Post Reply
Djo
Posts: 281
Joined: Mon Sep 09, 2019 3:02 pm

Change or add filter behavior (tags, categories)

Post by Djo » Fri Jun 18, 2021 5:15 pm

Let's say we have tasks with some tags assigned:

Task1: Friends, Indoor, Meeting, Paris
Task2: Meeting; London
Task3: Outdoor, Work
Task4: Indoor, Meeting, Work
Task5: Indoor, Meeting, Paris, Work
Task6: Meeting, Paris, Sales, Work


Let's say 2 tags are selected in the Tags filter control: Meeting; Paris


Current behavior with filter options:

When "Any Tag can match" is ticked, are displayed the tasks that have AT LEAST ONE of the selected tags
> So Task1, Task2, Task4, Task5 and Task6 are displayed here


When "Any Tag can match" is unticked, are displayed the tasks that have ALL the selected tags and ONLY those tags. This is a very strict behavior.
>So no task is displayed here (!)


Another filter behavior is currently missing: are displayed the tasks that have AT LEAST ALL the selected tags
> With this behavior, Task1, Task5 and Task6 would be displayed here

This behavior is much more useful and desired than the current behavior of "Any Tag can match" unticked.

And it allows to narrow gradually the tasks displayed by selecting additional tags in the Tags filter control, if desired.
For example, in the example where the 2 tags are selected in the Tags filter control (Meeting; Paris), Task1, Task5 and Task6 are displayed. Now we can select another tag in Tags filter control to filter even more the results. For example, we select additionally the tag "Work", and now only Task5 and Task6 are displayed.

The filter options should handle this behavior, and for categories and persons too (and statuses and versions if added)

At least for tags, this behavior is probably the most relevant and could be the default.

Djo
Posts: 281
Joined: Mon Sep 09, 2019 3:02 pm

Re: Change or add filter behavior (tags, categories)

Post by Djo » Fri Nov 26, 2021 7:56 pm

Here's a suggestion to implement this request.

Consider the filter options would be modified as this:

NewFilterOptions.png

To illustrate how the two options would work together, consider 6 tasks (T1 to T6) with some tags assigned:

T1: tag1
T2: tag2
T3: tag3
T4: tag1 ; tag2
T5: tag2 ; tag3
T6: tag1 ; tag2 ; tag3


Considering Tag1 and Tag2 are selected in the Tags filter, here are the tasks that would be displayed depending on the state of the two options:

OptionResult.png
OptionResult.png (4.81 KiB) Viewed 21 times
As you can see the "Any can match" behavior here is not exactly the same as the current implementation.

PS: "Limit to selection" could be maybe renamed to "Only selected", or something else.

Post Reply