Query YAML properties using DataView

Hello!

Need help with the DataView plugin.
There are files in which the “status” property is written in the YAML section and the task is inside.

---
status: now
---

I want to display tasks from all files with the “status = now” property in the daily note.
My query code below does not output anything.

    task
	from "02. TASKS" and !"-=meta=-/templates"
	where !completed and contains(status, "now")
	group by file.outlinks
	sort file.ctime desc

I will be grateful for any help

P.S. I apologize in advance for my English ))

Hello.

Does this work?

```dataview
TASK
FROM ""
WHERE !completed
WHERE file.frontmatter.status = "now"
GROUP by file.outlinks
SORT file.ctime desc
```

Yes, it works fine.
Thank you so much for your help! :slight_smile:

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.