Dataview list tasks from notes with certain metadata properties

Try the following in a file of its own:

---
Zstatus: InComplete
status: InComplete
---

- [ ] my task
- [x] with status "x"

## Base query

```dataview 
Task
Where file = this.file
```

## status
```dataview 
Task
Where file = this.file
WHERE status = "InComplete"
```

## zstatus
```dataview 
Task
Where file = this.file
WHERE zstatus = "InComplete"
```

## file.frontmatter.status

```dataview 
Task
Where file = this.file
WHERE file.frontmatter.status = "InComplete"
```

## x status

```dataview 
Task
Where file = this.file
WHERE status = "x"
```

This file in reading view displays as the following for me:

Explanation:

  • status in a Task query refers to the character within the square brackets
  • zstatus doesn’t have a special meaning so it refers to the frontmatter field of the file
  • file.frontmatter.status specifically targets the frontmatter variant of the status field

For other implicit metadata of a Task query see Metadata on Tasks and Lists - Dataview

Sorry for not catching the special meaning of status in a Task query earlier, it just slipped my mind.