help me create this view (power-user wanted).

37 views
Skip to first unread message

robisme (Olivier R)

unread,
Feb 13, 2016, 11:06:31 AM2/13/16
to MyLifeOrganized
Hello everyone.

I'd like to filter a view displaying only the tasks that don't contain a closed context, even if it contain an open context.

I have a context @PREPARE and 3 contexts, let say @A, @B, @C
Each @ABCD context is included in @PREPARE

My view should display a group @PREPARE with the tasks that have both @PREPARE and one of the @ABC context.
But sometime, one of the @ABC context is closed (classes in training period, I don't have to prepare my teaching lessons for)
When a @ABC context is closed, I'd like not to see the "prepare lesson for class A" below the group "@PREPARE.

Is it possible?


ie:

- task 1 @A, @PREPARE
- task 2 @B, @PREPARE
- task 3 @C, @PREPARE


When all context are open, I' like to see:
@PREPARE
   - task 1 
   - task 2 
   - task 3 
@A
   - task 1 
@B
   - task 2
@C
   - task 3

But when context @B is closed, I' like to see:
@PREPARE
   - task 1 
   - task 3 
@A
   - task 1 
@C
   - task 3

BOC

unread,
Mar 6, 2016, 12:03:01 PM3/6/16
to MyLifeOrganized
Try this:  

 (Contexts contains (consider open/closed state) @B;@PREPARE) OR
 (Contexts contains (consider open/closed state) @A;@PREPARE) OR
 (Contexts contains (consider open/closed state) @C;@PREPARE)

The problem if you try to break it down this way:
 contains A or
 contains B or (this may be closed)
 contains C or
 contains PREPARE (you've now made the statement true for B because the task contains both @B & @PREPARE)

Hope that helps.

robisme (Olivier R)

unread,
Mar 6, 2016, 3:44:39 PM3/6/16
to MyLifeOrganized
It works, thank you
Olivier
Reply all
Reply to author
Forward
0 new messages