Like many of you, I have a “Person” note for everyone I meet with regularly. I use the excellent Tasks plugin.
I’d like to have a query for all incomplete tasks on notes that mention [[Person-A]].
This would be useful for finding tasks that I owe the person, so I can prepare for our 1-on-1 meetings.
Grant, I’ve used dataview plugin precisely for preparing for my 1-on-1’s. Below is another contributors response to my very same ask in a different thread for finding all tasks related to a particular project that I have also modified to find tasks related to a particular person.
1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
title: DQL10_use_fTasks_and_display_uncompleted_tasks_including_a_link =>1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
collapse: close
icon:
color:
```dataview
TASK
FROM "100_Project/02_dataview/Q76_tasks/Q76_test_data"
WHERE !completed
WHERE contains(text,"[[Tom]]")
GROUP BY header
```
1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
title: DQL20_use_Tasks_and_display_uncompleted_tasks_including_a_link =>1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
collapse: close
icon:
color:
```tasks
not done
path includes 100_Project/02_dataview/Q76_tasks/Q76_test_data
description includes [[Tom]]
group by heading
hide edit button
hide backlink
hide task count
```
1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
title: DVJS10_use_Tasks_in_DVJS_and_display_uncompleted_tasks_including_a_link =>0.To require the tasks plugin 1.To filter by uncompleted task 2.To filter by text where there is a link 3.To group by header 4.To display the result as a taskList [with the desired structure]
collapse: close
icon:
color:
```dataviewjs
// M11.define query: require the tasks plugin
// #####################################################################
const query = `
not done
path includes ${dv.current().file.path}
description includes [[Tom]]
group by heading
hide edit button
hide backlink
hide task count
`;
// M51.output query:
// #####################################################################
dv.paragraph('```tasks\n' + query + '\n```');
```