I’m using Task Plugin and I want to get all tasks with a specific status name from all notes with a tag defined.
I found this topic, but they are showing how to do that with dataview, but I’m trying to add (status.name includes forward) OR (status.name includes status)
in that script, but it still returning just tasks with default status type, not custom name.
const tag = '#examples'
const matching_files = dv.pagePaths(tag)
if ( matching_files.length > 0 ) {
const query = `
not done
(path includes ${matching_files.join(') OR (path includes ')}) AND (status.name includes forward) OR (status.name includes status)
# you can add any number of extra Tasks instructions, for example:
group by path
`;
dv.paragraph('```tasks\n' + query + '\n```');
} else {
const message = `No files found with tag ${tag}`
dv.paragraph(message)
}