Forums

Discuss all things Remember The Milk.

Help with advanced search/smart list

jrcaban says:
Hello,

Is there a way to search for 2 groups of tags, a primary group of tags that MUST be included in each task and a secondary group of tags that are optional? Each task listed in the search results MUST include one of the primary tags, but the results should NOT include tasks that only have the secondary tags and none of the primary tags?

I hope I have clearly explained the problem I am having. Thanks in advance for any help.
Posted at 2:40am on February 27, 2012
jrcaban says:
Here is an example, the Primary tags are; TAG:A and TAG:B. The optional, Secondary tag is; TAG:1

Correct Results:

*task1, TAG:A, TAG:1
*task2, TAG:B

----------------------------------------------------------------------

Incorrect Results:

*task1, TAG:1



Posted 13 years ago
andrewski (Remember The Milk) says:
Hi jrcaban,
Using the advanced search, you could do something like this:

(tag:a OR tag:b) AND NOT (tag:1 AND NOT (tag:a OR tag:b))

However, unless I misunderstand, tag:a OR tag:b should show all the tasks you want (i.e. only the ones with one of the required tags, regardless of whether they have the optional tags—the ones with only optional tags will not be shown).

Hope that helps!
Posted 13 years ago
ranbarton Power Poster says:
You might wind up creating several lists to search for various combinations, and then have one smartlist that combines them all into one view.
Posted 13 years ago
jrcaban says:
Thanks for the replies. I will try them out and see how they work.
Posted 13 years ago
Log in to post a reply.