Dataview checklist removes Headings, how to preserve headings?

So I have a query that loads checks

dataview
TASK from -“Templates” & #todo

I have a file called “To do’s”

### General
 - [ ] Check 1
 
### Work
 - [ ] Check 2

This is getting displayed as

## To do's
- [ ] Check 1
- [ ] Check 2

Rather than separating the 2 checks like this in the original file:

## To do's
### General
 - [ ] Check 1
 
### Work
 - [ ] Check 2

Is it possible to preserve the headings where the checks are located?
If not is it possible to do a dataview query to load the entire note where the checks are in #todo ?

Any help would be appreciated!

Not a clean solution, but you can try this:

```dataview
TASK
FROM -"Templates" AND #todo
GROUP BY section
```

EDIT: For now the only content available as metadata is the content of the tasks. You can’t query (or “load”) the content of the entire note.

It’s not very clean indeed, but it works. I guess it’ll have to do :slight_smile:

Thanks again!

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