Remove headers from dataview task query

I use the following dataviewjs formula to list my incomplete tasks from notes:

dv.taskList(dv.pages().file.tasks.where(t => !t.completed));

The result has links to the notes as headers. I have only one task per note, so these headers take up a lot of unnecessary space for me. Do you know if there is a way to remove the headers from the query result?

I can suggest a solution in simple DQL, not in DJS.

Your query in DQL:

```dataview
TASK
WHERE !completed
```

By default, tasks are listed grouped by files/notes.
But you can group them by other <data-values> (for example by creation date, tags, etc.).
However, for a ‘clean’ list of tasks without multiple groups, the only workaround I know is forcing the groups to be only one:

  • you can group them using an inexistent field (like “abcd”) and shows an “-” at the top of tasks lists:
```dataview
TASK
WHERE !completed
GROUP BY abcd
```
  • or given a title to your single group like:
```dataview
TASK
WHERE !completed
GROUP BY "My Tasks" AS abcd
```

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