How to create a filter to show Starred tasks, but during the day not tasks wt @EveningOnly context?

27 views
Skip to first unread message

John . Smith

unread,
Mar 1, 2018, 3:38:36 PM3/1/18
to MyLifeOrganized

Hello

OK I give up!

How do I create an Advanced Filter that shows all Starred tasks, except during the day all those tasks with the context of @EveningsOnly should not appear?

i.e.
1. For a task to appear it at all it MUST be Starred. But...
2. During the day, if a task has the @EveningsOnly Context, then it will NOT appear.
3. During the day, if a task does not have @EveningsOnly flagged it will appear. 
4. During the evenings ALL the starred task should appear and the @EveningsOnly context needs to becomes irrelevant 

Does that make sense?

J

robisme (Olivier R)

unread,
Mar 1, 2018, 5:09:39 PM3/1/18
to MyLifeOrganized
Did you set opening hours to your context ?
If not yet, then do it, and uncheck "closed context" in the left pane.
You should no longer be bothered by those tasks.
Olivier

John . Smith

unread,
Mar 1, 2018, 5:37:13 PM3/1/18
to MyLifeOrganized
Yes I have set up the hours and yes I have un-checked the "Include Closed"

But what should my advanced filter now look like?

I tried: 
   (Starred) AND
   (Contexts contains (consider open/closed state) @Evenings)
==> But that only shows tasks that are Starred AND have @Evenings contexts.
i.e. It fails to show task that have Stars but which do not have @Evening contexts

I tried: 
   (Starred) OR 
   (Contexts contains (consider open/closed state) @Evenings)

But in the evenings, it ALSO shows tasks that have not been Starred.
Whereas in the evenings I only want tasks that have @Eveninings AND have been Starred.

I am probably just being thick but I can't get my head around it.

J

John . Smith

unread,
Mar 1, 2018, 5:43:56 PM3/1/18
to MyLifeOrganized
OK, I think I have solved my own problem.
   (Starred) AND
   ((Contexts contains (consider open/closed state) @Evenings) AND (Starred))

That seems to work...  although I might need to double-check in the morning!

J

John . Smith

unread,
Mar 1, 2018, 5:57:24 PM3/1/18
to MyLifeOrganized
For completeness, I don't infact want any tasks to appear that have @Someday set either, so now my advanced formula has become:
   ((Starred) AND (Context does not contain @Someday)) OR
   ((Contexts contains (consider open/closed state) @Evenings) AND (Starred) AND (Contexts does not contain @Someday)

There may be a simpler way of doing it but it seems to work.

J

John . Smith

unread,
Mar 6, 2018, 10:30:59 AM3/6/18
to MyLifeOrganized

Just in case anyone else is still interested (and in case I need to re-set this up again from scratch):

My Advanced Filter that I had was in fact failing because during the day those tasks with @Evening contexts where still appearing.
So I have changed it to:

   ((Starred) AND (Context does not contain @Evenings) AND (Context does not contain @Someday)) OR
   ((Starred) AND (Contexts contains (consider open/closed state) @Evenings) AND (Contexts does not contain @Someday)

Deconstructing this we have: 
A) For during the day a task must be starred, and must not have an @Evenings context
==> If starred without @Evenings, it will appear
==> If starred WITH @Evenings, it will NOT appear
 
B) For during the evenings again it must be starred but if @Evenings is open then it will appear.
==> If starred without @Evenings, it will appear
==> If starred WITH @Evenings, it WILL appear

Either way, it will not appear if it has @Someday context.

I'll need to double-check the above, this evening.
Fingers crossed!

J






Reply all
Reply to author
Forward
0 new messages