I have a code like this:
dv.header(2, 'Project');
dv.taskList(dv.pages().file.tasks
.where(t => !t.completed)
.where(t => t.text.includes("[[Project]]")), false )
with this result:
Could you please tell me how to remove Project from each task?
I want it to show without project, like this:
THANK YOU VERY MUCH!
holroy
2
If you define .visual
it’ll replace the .text
variant, so one way to do this would be something like:
```dataviewjs
dv.header(2, 'Project');
dv.taskList(dv.pages().file.tasks
.where(t => !t.completed)
.where(t => t.text.includes("[[Project]]"))
.mutate(t => t.visual = t.text.replace("[[Project]]", "") )
, false )
```
2 Likes
system
Closed
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.