Include Parent Item Only If it's a Project

63 views
Skip to first unread message

Amir Rachum

unread,
Apr 18, 2017, 4:14:10 AM4/18/17
to MyLifeOrganized
What I want is to have a view with a certain filter (doesn't matter) and include the parent item only if it's a project.
When creating a filter for a custom view, there is a "Show Hierarchy" option. In the "Config" dialog, I can choose "Include Parent Item" and configure a filter for the parent items. 
However, if I set the filter to "IsProject = true", then I only get items that are in a project. That is, items that are included in my main filter are not shown if they are not children of a project.
What I want is to get all items in my filter, but show the parent only if it's a project. Is that possible?

Dwight

unread,
Apr 18, 2017, 6:46:54 PM4/18/17
to MyLifeOrganized
I can come close but not perfect. Try this: set the main filter to whatever you have in mind <or> (is project with subtasks). Configure hierarchy to show children but not parents, and configure the child filter to your original filter criterion.

Result, just what I think you want, with one exception: if a project that has subtasks all of which fail the original filter then the project should be excluded but it is in fact included.
Example, I have a profile with two contexts, @set and @clear. I want to see all of the @set tasks and any parent that is a project.

Full profile


Main Filter


Hierarchy filter


Children Filter


Result

Result looks good to me except that "project with clear child" and "project with clear grandchild" should not be displayed.
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3
Auto Generated Inline Image 4
Auto Generated Inline Image 5

funjul...@gmail.com

unread,
Jan 24, 2021, 4:58:40 AM1/24/21
to MyLifeOrganized
It seems that none of this should be necessary if parent and child filtering worked correctly.

In another thread, you wrote a clear explanation of how they should work:

> Hierarchical views are created in two steps (well, more really but only two that matter to this discussion) First, the main and advanced filters are applied to create a flat list of items that pass the filter at that level. The second step makes it hierarchical: the children and/or parents (per your request) are attached to each of the items that passed step one. The children and/or parents are filtered based *not* on the main and advanced filters but on the child filter and/or parent filter (click the “config” button after the Show Hierarchy filter). Then the resulting trees are merged and your view is ready.


But as this user points out, parent and child filters sometimes exclude tasks that pass the main filters, which should never happen.
Reply all
Reply to author
Forward
0 new messages