UPDATE: My bad, I borked. I missed the fact that YAML demands the metadata section to be at the very top. However, I have two problems with dataview.
The minor one is that the following doesn’t work for me:
TASK
FROM "tasks"
WHERE (due = date(today)) AND !completed
As you might have guessed, I’m trying to show all non-completed tasks for Today. It returns zero results.
However, my major problem, that I’ve also mentioned below, is that dataview doesn’t work for me at-all on Android. Is it compatible only with the desktop version of Obsidian? If not, any ideas how to troubleshoot/fix the problem?
Feel free to ignore everything below. I’m leaving it here for anyone who wants to laugh at my absent-mindedness.
For some reason I’m not able to make the boolean logic work with dataview in my setup. I’d appreciate some help, since I’ve already spent hours trying to solve the problem and failing.
I’m trying a task management setup where I’ll keep all task-related notes in a folder (named “tasks”, in Obsidian Vault’s root). Then, I want to “pull” all tasks from there and have them listed in a single note, named “010_Tasks”. My goal is to have this page, with all my tasks, easily accessible on both my PC and Android smartphone.
Each note with tasks might contain one or multiple tasks. Its structure goes like this:
# Title Like X-Project Tasks
%%
- - -
**Link:** [[Main_Project_Page]]
**Tags:** #maintag/subtag
**Time:** 15:30 Friday, 01-10-21
**Date:** 2021-10-02
**Notes:**
Anything goes here...
- - -
%%
- [ ] Task 1
- [ ] Task 2
- [ ] Maybe a 3rd one, too!
My first problem’s on the PC. I’m trying to create some dataview rules that will pull data from all files in the same folder (“tasks”), but only present the tasks that match a particular tag. My latest failed attempt is this:
TASK
FROM "tasks"
WHERE Tags = "#maintag/subtag"
…and, ideally, there should also be a “!completed” somewhere, to hide completed tasks. I haven’t even reached that point yet. The output from the above shows nothing. I’ve tried enclosing the Tags = “#maintag/subtag” in parentheses. Nothing. What gives?
Also, on mobile it’s even worse: dataview seems to not be working at all. A plain…
TASK FROM "tasks" WHERE !completed
…that does work on my desktop PC shows nothing on my smartphone.
So… Any ideas on what I’m doing wrong? I’m floored by what you’ve all achieved, and I can’t even proceed to the first step!