Hi,
For the last days I have been struggling with – what I thought – would be a simple query within Dataview with the Tasks Plugin; however, I do not make it work and are in desperate need of help
What I’m trying to do
I run a dataview query over a list of tasks and would like to exclude those tasks that are completed - pretty simple ask, I thought.
What I have tried
This is the list of tasks from “Notes/Tasks”
- [x] Task #1
2023-02-27
2023-02-27
2023-02-28
2023-02-27
- [ ] Task #2
2023-03-05
2023-02-28
- [ ] Task #3
2023-02-28
2023-02-27
2023-02-27
- [ ] Task #4
2023-03-10
2023-03-06
2023-03-07
… and this is the query:
TABLE WITHOUT ID regexreplace(Tasks.text, "((([📅⏳🛫⏫🔼🔽].*|\<.*)\n*$))", "") AS Task, file.link AS "File", Tasks.due AS "Due Date"
FROM "Notes/Tasks"
FLATTEN file.tasks AS Tasks
WHERE (status != "x") AND (status != "X")
This does not work
I have replaced the WHERE clause with various options:
- WHERE !completed (shows all tasks)
- WHERE status = !completed (shows no task at all)
If I am using the Dataview TASK query, it works perfectly:
TASK
FROM "Notes/Tasks"
WHERE !completed
However,
(1) I would like to have table set up and (more importantly)
(2) I am not a big fan of color icons, icons at all (I like a very plain, minimalistic setup) - and I did not find a way to include the regexreplace option in the TASK query.
After all, I would think that the TABLE query option should also work, and it is certainly me, making some mistakes in the query So I am in need of some hints on what I am doing wrong here!
Thanks!
Sven