Exclude items from search (i.e. tag:not:"Searchstring")

Is it possible to add an exclude filter to the search, for example, like tag:not:“Searchstring”?
This would be great.

2 Likes

if your question is:
“Hey, I just downloaded and installed Kanboard, and noticed that I would like to exclude tasks with the tag yadda. Is there a filter I can type in the search field that would exclude them?”

Answer: no

if your question is:
“Hey, can I add my own custom filter to Kanboard that would allow me to exclude tasks with the tag yadda?”

Answer: yes

I’m a little confused by the answer, are you suggesting the appropriate way to define an exclusion filter is to create a custom filter where everything else except the tag is shown?

Yes pretty much. Or you could search for everytag except the one you want to exclude.

That seems pretty work intensive for this kind of feature. I’m not familiar with the backend of Kanboard at all, but I would imagine this would be fairly easy to implement by changing queries headed towards the backend DB.

Theres not a lot of documentation on it, but i can point you in the right direction if you want.

To implementing some change in the code or to structure a “exclusion filter”? I’m not sure if I have time to dedicate to the former but I can take a look.

Adding a filter:
https://docs.kanboard.org/en/latest/plugins/hooks.html?highlight=tasklexer#add-new-task-filters

How to get from DB what you need:

example of a filter:

How to register the plugin/filter:
https://docs.kanboard.org/en/latest/plugins/registration.html