Description filter also searches subtasks
This commit is contained in:
parent
ad60915e7a
commit
86a2385929
@ -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 || '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user