Closed bmscmoreira closed 2 years ago
what version of metamagik?
please share visuals, as I'm confused, and not understanding. might just be what you call a board I would call a task, but not sure.
assuming when you say board, you mean task.
If I search for metaval:"B1" then A1B1 board shows and nothing else; works as expected If I search for metaval:"A" then A1B1 board shows and A board shows; I was expecting that only A board showed up
correct, the filter uses "ilike" they both have "A", thus, they both show up. I'm not going to change that, because its a double edge sword. possible to add a filter for exact tho.
If I search for metaval:"B1" then A1B1 board shows and nothing else; works as expected
correct, as it is the only task with "B1"
If I search for metaval:"C" then all boards show; I was expecting nothing to show.
agree, ill take a look, but I think that is just how the query works. but we could change that, I have done it before on other filters. if it finds nothing it just returns everything, sort of like a reset.
Hi. Using version 1.5.0. Please see image below, I think it should clarify. I am searching for the "cfield" custom field using the metaval filter. (look how "A2" returns nothing but "A3" returns everything, despite having no task with either "A2" or "A3" value in the cfield custom field. Thank you.
ya, that's weird...
Found something: I am using "coverimage" plugin as well - and since it uses a custom field as well, it's affecting the query. It would be extremely useful having the possibility to search for a specific customfield :)
that kind of makes sense, and is a good starting point to solve it. Coverimage stores the image ID in the metadata, so, maybe when searching for "A3" there just happens to be a task that has "A3" in the image id? Just a guess, try adding, "Status:Open", in your search query? This is not something I will have time to troubleshoot anytime soon.
i say that, but the more i look at it and think about it, it still doesn't make sense, that shouldn't affect it at all...who knows.
Try that, report back. I tested on my end. It now returns nothing, if nothing is found.
I will say, I had different result than you. Both A2 and A3 returned everything for me. Now they both return nothing. Probably because it found something, which would make sense with other plugins using metadata, but has nothing to display when it searches in tasks for the board. So, long story short....it is fixed
Thanks. Works perfectly!
I am trying to search for specific boards using the filters but the result is not as expected. Example:
If I search for metaval:"A" then A1B1 board shows and A board shows; I was expecting that only A board showed up; If I search for metaval:"B1" then A1B1 board shows and nothing else; works as expected; If I search for metaval:"C" then all boards show; I was expecting nothing to show.
I am using Kanboard v 1.2.22.