Description filter also searches subtasks

This commit is contained in:
Gordon 2021-04-11 17:40:04 +01:00
parent ad60915e7a
commit 86a2385929

View File

@ -106,7 +106,10 @@ const filterTask = (task: KanbnTask, taskFilter: string) => {
let propertyValue = ''; let propertyValue = '';
switch (parts[0]) { switch (parts[0]) {
case 'description': case 'description':
propertyValue = task.description; propertyValue = [
task.description,
...task.subTasks.map(subTask => subTask.text)
].join(' ');
break; break;
case 'assigned': case 'assigned':
propertyValue = task.metadata.assigned || ''; propertyValue = task.metadata.assigned || '';