Board view query/display only child notes within the same levels #21
-
Hey @mabeyj, Thanks for creating this plugin. It's been fun and helpful to use it. I've been creating a To-Do plugin since I have multiple projects and was hoping to use your views to enhance the user experience. As you can see in the image, it's displaying child notes from others projects. Is there a way to group by only the child's notes respecting the levels? Here's how I have defined the LOCATION label, which I use to group and sort: The ARCHIVE, BACKLOG, DONE, and IN PROGRESS (aka.: category) have the #sorteableTitle. And each To-Do item has a "location" relationship to its parent (which I called a category earlier). I've checked each location relationship, and NO, they are not relating the category from the other project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @nicollasricas, I think this can be done by adding an ancestor condition to In your first screenshot, you have
Since the Project notes are the render notes that render the views, there is a special variable I've roughly recreated your setup, and I think this accomplishes what you're looking for. Project 1 only shows notes under Project 1, etc.: |
Beta Was this translation helpful? Give feedback.
Hi @nicollasricas, I think this can be done by adding an ancestor condition to
#query
.In your first screenshot, you have
#query="#todoItem"
which would return all notes in your entire tree (across all projects) having the#todoItem
label.#query="#todoItem and note.ancestors.title = 'Project 1'"
would return all notes underneath "Project 1" having#todoItem
.Since the Project notes are the render notes that render the views, there is a special variable
$title
that is replaced with the render note's title. Then you wouldn't need to hardcode the project name in the query:#query="#todoItem and note.ancestors.title = $title"
(This also allows you to create a "project…