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.
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.
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
Correct Results:
*task1, TAG:A, TAG:1
*task2, TAG:B
----------------------------------------------------------------------
Incorrect Results:
*task1, TAG:1
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!
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!
jrcaban says:
Thanks for the replies. I will try them out and see how they work.
Log in
to post a reply.
