Hey folks, I am new to SB and am trying to create a template I can use for 1:1 meetings. In the template I want a section at the top that displays a live view of my current open tasks for the person the 1:1 is with.
I am using a set page title that has the person name as the last word in the title. I thought I could use _CTX.currentPage.name to filter itags on the tasks and get a filtered list. This does not seem to work though. I am assuming it’s some scoping issue with queries not being able to access thread locals or something, but I CAN use _CTX when displaying the list of tasks (appending it to the task name as a test) so I’m not sure what I am missing here. Here is the query i am using:
${query[[
from index.tag "task"
where table.includes(itags,tostring(_CTX.currentPage.name.split('-')[5]))
select {
Name = name
}
]]
}
I also attempted to do the same thing using editor.getCurrentPage(), but that also did not work in the context of a query.
Thanks!