TASK
FROM "Kanban"
WHERE !completed AND text != ""
SORT created asc
GROUP BY header
is it showing everywritten thing in kaban separated by topics and files
can it show only tasks inside kaban and not everything?
Assistant
Your query:
TASK
FROM "Kanban"
WHERE !completed AND text != ""
SORT created asc
GROUP BY header
Here's what it does:
TASK — retrieves all tasks (lines starting with - [ ] or similar).
FROM "Kanban" — searches only inside files or folders named "Kanban".
User
oh thats right, im using cardboard so i guess everything is a task but not showing as task
Assistant
Ah, that makes sense!
Cardboard plugin (for Obsidian) handles Kanban cards as tasks internally, but the underlying markdown might not be standard markdown tasks (like - [ ] Task text). Instead, Cardboard might be storing cards in a structure that Dataview’s TASK query does not recognize as "tasks".
What you can do:
Check how Cardboard cards are stored in markdown
Open your Kanban board .md file and see how tasks are written. Are they formatted as:
- [ ] Task text
User
actually i dont know if thats that
i just created something using kanban plugin and when i change view to markdown i can see it was created as a task
A Fazer
teste
Deixar os arquivos nos soltos, exceto o que realmente merece estar em uma pasta específica
Remover pastas inúteis
Remover plugins que não uso mais
Mergir todos os css (com descrição de todos comandos) em uso e deixar isolados os em fase de teste
Great, thanks for sharing the snippet! Since your Kanban plugin creates tasks as normal markdown checkboxes () inside headers like , , and , your original Dataview task query .
User
it wont work because everything is created as a task, is there any way to use kanban without things being created like that?
Assistant
User
i am doing a dashboard and i want to show project tasks to do
i guess i could divide into multicolumns divided by priority? i dont know
Assistant
User
could i divide by title? say i have to do, doing and done
could i have a dataview for only tasks to do and another for doing and another for done?
sorted by priority
Assistant
Yes, absolutely! You can create separate Dataview queries for tasks under each status (e.g., To Do, Doing, Done) and within each query sort the tasks by priority.
Since your Kanban plugin uses headers like ## A Fazer, , (or more generally , , ), and tasks are grouped under those headers, you can filter tasks based on their using the field in Dataview’s queries.
User
if i use a file that has other names maybe idea doing and finished, will i have to create another dataview to change the titles?
Assistant
Yes, exactly — if your files use different header names (like Idea, Doing, and Finished instead of To Do, Doing, Done), your Dataview queries need to use those exact header names in the filter.
Dataview’s header field matches the section titles case-sensitive and exact, so you have two main options:
1. Create separate queries for each set of headers
For example, if you have some files with headers:
Idea
Doing
User
it didnt work
lets say i have 3 different files in the folder Kanban
each i use the same strucutre A fazer, Fazendo, Feito
i need a dataview to get all tasks from A fazer , other from Fazendo and other from Feito from all the files inside kanban folder
Assistant
Gotcha! You want to scan all files in the folder Kanban, and show tasks grouped by their section headers "A Fazer", "Fazendo", and separately — aggregating from all files in that folder.
User
it doesnt work it doesn show anythiing
Assistant
Thanks for the update — let's troubleshoot why it doesn't show anything.
User
TASK
FROM "Kanban"
WHERE !completed AND text != ""
SORT created asc
GROUP BY header
This one works but it shows erverything
Assistant
Thanks for confirming! Since this query:
TASK
FROM "Kanban"
WHERE !completed AND text != ""
SORT created asc
GROUP BY header
works and shows tasks from all files in the Kanban folder grouped by their headers, but you say “it shows everything” — I understand you mean it shows all incomplete tasks from all headers, but you want to show only tasks from a specific header (like only “A Fazer”) in a query.
User
but it doesnt show anything when i add header, i gave u the code as an example for smth thats workin
Assistant
Thanks for clarifying that the query without the header filter works, but adding header = ... filters results to nothing.
That means the header value Dataview sees for those tasks is (or not set the way you think).
User
it doesn show any header , just the symbol " - "
Assistant
User
i checkec, the header are all H2
Assistant
User
A Fazer
teste
Deixar os arquivos nos soltos, exceto o que realmente merece estar em uma pasta específica
Remover pastas inúteis
Remover plugins que não uso mais
Mergir todos os css (com descrição de todos comandos) em uso e deixar isolados os em fase de teste
Pensar em um dashboard
its like this
Assistant
User
write me the js
Assistant
User
i want just a fazer for now
Assistant
Got it! Here's a simplified DataviewJS script that reads all markdown files inside your folder, extracts only the tasks under the header (H2), and displays them as a checklist:
User
nothins show
Assistant
User
file not found
Assistant
"File not found" means the file path you gave does not exactly match a file in your vault. The path must be:
Relative to your vault root
Use forward slashes /
Match file name and folders exactly, including capitalization
To fix:
Open Obsidian's file explorer and get the exact path of one of your Kanban files.
Example path:
Kanban/Projeto X.md
Use that exact path — including spaces and capitalization — in place of "Kanban/example.md" in the script:
const filePath = "Kanban/Projeto X.md";
Be sure to include the .md extension.
Example: Suppose your file is:
Kanban/Projeto X.md
WHERE !completed — only tasks that are not completed.
AND text != "" — tasks that have some text content.
SORT created asc — sorts by created date ascending.
GROUP BY header — groups the results by section header.
Does it show everything written in Kanban separated by topics?
No, it only shows tasks (checkbox lines) from Kanban files.
Grouping by header means tasks are shown grouped by their section headers.
Can it show only tasks inside Kanban and not everything?
Your current query already filters only tasks, so it doesn't show all normal text, only task lines.
If you're seeing other text, it might be because your tasks include non-task lines or your data structure is different.
Possible improvements
If you want to make sure only tasks inside Kanban files are shown, you can be more specific:
If "Kanban" is a folder, use "Kanban".
If "Kanban" is a file, specify "Kanban.md".
If you want to exclude any lines that might not be tasks:
TASK
FROM "Kanban"
WHERE !completed
SORT created asc
GROUP BY header
Notice removing text != "" might still be fine because tasks usually have text.
Summary
Your query already shows only tasks inside Kanban files.
It groups them by header.
It doesn't show everything written; only tasks matching your filters.
If you want to show tasks from specific files or folders, adjust the FROM clause exactly.
If you want to show tasks only under certain headers, you can add a WHERE condition on header.
If you want an example that shows just tasks inside Kanban files, grouped by header, and sorted by creation date, your query is mostly good as is. Just check your file structure and make sure the "Kanban" bit matches your files/folders correctly.
or some other format like:
- Task text
or something else?
If cards are not markdown tasks, Dataview's TASK queries cannot find them. You will need to query them as just normal lines or blocks.
Option to query cards as normal lines (not tasks):
Instead of TASK, you can try LIST or TABLE queries looking for lines matching a pattern or inside some sections, for example:
LIST
FROM "Kanban"
WHERE !completed // or another filter if possible
But if these lines don’t have standard task checkboxes (- [ ]), completed may not work.
Try custom JavaScript query
If Cardboard stores meta in YAML frontmatter or block meta, you could write a dataviewjs query to extract card info.
Summary
Cardboard-managed tasks may not be markdown tasks—so Dataview’s TASK queries won’t capture them.
You can verify by checking the markdown source.
Use LIST or TABLE queries with filters, or dataviewjs for more advanced extraction.
If you want to stick with Dataview's task queries, confirm your tasks are written in markdown checkbox format.
If you want, share a snippet of one Kanban card in raw markdown, I can help you write a query to show it properly!
- [ ] ...
## A Fazer
## Fazendo
## Feito
should work correctly
Here’s why:
Tasks in your Kanban board are standard markdown checkboxes.
They have headers that define the columns/status.
Your query groups tasks by those headers (like "A Fazer", "Fazendo", etc.).
Your query revisited:
TASK
FROM "Kanban"
WHERE !completed AND text != ""
SORT created asc
GROUP BY header
This will show all incomplete tasks under each header in files or folders matching "Kanban".
GROUP BY header will group lists by the section headers (your column names).
A couple of suggestions for improvements or checks:
Check the "FROM" path
Make sure "Kanban" in FROM "Kanban" matches your actual folder or filenames with the Kanban boards.
For example:
If your files are in a folder named KanbanBoards, your query should be:
FROM "KanbanBoards"
If you want to scan all .md files containing Kanban boards irrespective of folder, you can remove FROM or specify a list of files.
Remove text != ""
Since all tasks will have text, text != "" is redundant and can be removed:
TASK
FROM "Kanban"
WHERE !completed
SORT created asc
GROUP BY header
If you want to include completed tasks too, remove !completed or change as desired.
Optional - Show tasks with the status header as column:
You can display the grouped results in a table with headers, for example:
TABLE text AS Task, header AS Status, created AS Created
FROM "Kanban"
WHERE !completed
SORT created asc
Summary
Because your Kanban plugin creates regular markdown tasks, your original Dataview TASK query will work just fine.
Just verify your folder/path name in FROM.
Grouping by header is great for viewing tasks by Kanban columns.
Remove unnecessary conditions like text != "".
If you want a refined example, here’s a minimal query to get all incomplete Kanban tasks grouped by their column headers:
TASK
FROM "Kanban"
WHERE !completed
SORT created asc
GROUP BY header
And that will show exactly what you want: only tasks from your Kanban boards, grouped by column (header).
Thanks for the clarification!
The issue you’re facing:
The Kanban plugin creates all cards as markdown tasks (- [ ] ...) by design.
So, every card is a task — that’s how the plugin works to integrate with Obsidian’s markdown.
If you want to have Kanban cards that are not tasks (no - [ ] checkbox), that’s not how the plugin currently works.
Is there a way to create Kanban cards without the tasks checkboxes?
Short answer: No, the official Kanban plugin creates cards as markdown tasks in the background and doesn’t provide an option to create cards without task syntax.
Why is this so?
Checkboxes (- [ ]) serve as the plugin’s way to track card completion.
It uses the task state natively for linking with other Obsidian plugins (like Dataview) and for marking cards done.
Without the task checkbox format, the plugin wouldn’t have a consistent way to manage card state (done/undone).
What are your options?
Use the Kanban plugin as intended (cards == tasks)
You accept that all cards are markdown tasks. Then:
Use Dataview’s TASK query to get those cards.
If too many completed cards bother you, filter with WHERE !completed.
Filter or query cards differently
If you want to filter cards that are only in certain columns or have specific tags, you could add tags or custom metadata in your tasks’ text or comments and then query accordingly.
Use another plugin or approach
If you want true Kanban cards that aren’t tasks, you’d need:
Another plugin that stores cards differently (for example, as headers or quotes).
Or create your own board manually using headings or block references.
Manually create Kanban-like boards without checkboxes
For example, write:
## To Do
- Task 1
- Task 2
## Doing
- Task 3
But you lose plugin features like drag & drop and task completion.
Summary
The official Kanban plugin always creates tasks as markdown tasks.
There is no built-in setting to create Kanban cards without tasks.
If you want non-task Kanban "cards," you’d have to build your boards manually or find/build another plugin.
If your goal is to avoid having those tasks everywhere and want just notes on Kanban cards without checkbox syntax, you would need a different plugin or a custom solution.
If you want, I can also help you write Dataview queries to better filter or display Kanban task cards with different grouping, tagging or filtering — just let me know!
That sounds like a great idea! A dashboard with multiple columns grouped by priority is a common and very effective way to organize project tasks.
Here’s how you could approach it using Dataview inside Obsidian:
1. Organizing your project tasks
Make sure your tasks have a way to specify priority, for example:
- [ ] Task A #priority/high
- [ ] Task B #priority/medium
- [ ] Task C #priority/low
or using inline fields:
- [ ] Task A 📌 priority:: high
- [ ] Task B 📌 priority:: medium
- [ ] Task C 📌 priority:: low
2. Create a Dashboard view with columns by priority
You can create a dashboard note and add a Dataview query that groups tasks by priority and shows only incomplete tasks.
Example using Dataview as a table grouped by priority:
TABLE text AS "To Do", file.link AS "Project", priority
FROM "projects" // adjust this path/folder/file where your project tasks are
WHERE !completed AND contains(priority, "high")
SORT priority asc, text asc
But that lists just "high" priority tasks; to get all priorities grouped, it's better to query all incomplete tasks with their priority field (inline or tag) and group by that.
Better: Group tasks by priority using GROUP BY:
TASK
FROM "projects"
WHERE !completed AND priority
GROUP BY priority
SORT priority asc
With this, you’ll get tasks grouped by their priority value.
3. Create multiple columns in your dashboard
Dataview queries are vertical by default, but you can get a multi-column layout with some CSS or by using the dataviewjs API.
For a simple multi-column Kanban-like view by priority, you could create separate queries per priority:
## High Priority
```dataview
TASK
FROM "projects"
WHERE !completed AND priority = "high"
SORT created asc
Medium Priority
TASK
FROM "projects"
WHERE !completed AND priority = "medium"
SORT created asc
Low Priority
TASK
FROM "projects"
WHERE !completed AND priority = "low"
SORT created asc
And then use CSS (either custom or a snippet) to display section divs side-by-side as columns.
---
## 4. Example CSS for multi-column dashboard layout
Add this snippet in your Obsidian CSS snippet file:
```css
.dashboard-columns {
display: flex;
gap: 2rem;
}
.dashboard-column {
flex: 1;
min-width: 200px;
}
Then in your dashboard note:
<div class="dashboard-columns">
<div class="dashboard-column">
### High Priority
```dataview
TASK
FROM "projects"
WHERE !completed AND priority = "high"
SORT created asc
Medium Priority
TASK
FROM "projects"
WHERE !completed AND priority = "medium"
SORT created asc
Low Priority
TASK
FROM "projects"
WHERE !completed AND priority = "low"
SORT created asc
This will create three columns for each priority with their tasks.
5. Tips
Use consistent priority tags or inline fields on tasks.
Organize all your project tasks into a folder or tag them uniformly so your queries pick them up reliably.
You can adapt the same pattern to organize tasks by status (todo, doing, done) or by project name.
You can add sorting by due date or created date as needed.
If you want, I can help you build a complete example dashboard file with working queries and CSS! Just let me know.
## Fazendo
## Feito
## To Do
## Doing
## Done
parent header
header
TASK
Here’s how you can do it:
Assuming your tasks have a priority field/tag (e.g. #priority/high or inline priority:: high), you can write queries like these:
Tasks To Do
TASK
FROM "Kanban"
WHERE header = "To Do" AND !completed
SORT priority asc
Tasks Doing
TASK
FROM "Kanban"
WHERE header = "Doing" AND !completed
SORT priority asc
Tasks Done
TASK
FROM "Kanban"
WHERE header = "Done" AND completed
SORT priority asc
Notes:
Replace "Kanban" in FROM with your folder or file name prefix containing your task files.
Adjust header names if they’re in other languages ("A Fazer", "Fazendo", "Feito").
You can change the sorting to prioritize your needs (SORT priority asc, created asc, for example).
If your tasks do not have an explicit priority field, you can add one as tags or inline fields for this to work.
If you want them shown side-by-side (multi-column dashboard):
Use the CSS approach from the previous message and place all three queries inside divs with class dashboard-column inside a container div with class dashboard-columns.
Example:
<div class="dashboard-columns">
<div class="dashboard-column">
### To Do
```dataview
TASK
FROM "Kanban"
WHERE header = "To Do" AND !completed
SORT priority asc
Doing
TASK
FROM "Kanban"
WHERE header = "Doing" AND !completed
SORT priority asc
Done
TASK
FROM "Kanban"
WHERE header = "Done" AND completed
SORT priority asc
Let me know if you want me to create a full working example including CSS and sample tasks!
Finished
you’d write queries like:
TASK
FROM "Kanban"
WHERE header = "Idea" AND !completed
SORT priority asc
and so on, for each header.
2. Normalize your headers in files
If possible, standardize your header names across files (e.g., always use To Do, Doing, Done). This way a single query will work everywhere.
3. (Advanced) Use multiple OR conditions inside one query
If you want to use one query for multiple headers, you can combine with OR.
Example to get all incomplete tasks from Idea, Doing columns:
TASK
FROM "Kanban"
WHERE !completed AND (header = "Idea" OR header = "Doing")
SORT priority asc
GROUP BY header
Summary
Headers are matched exactly in Dataview.
Different header names → need matching filters in your queries.
You can create multiple queries, normalize headers, or combine OR filters.
If you mix different header names and want a clean dashboard, normalizing headers or writing multiple queries is the way to go.
If you want, I can help you build a flexible Dataviewjs query that automatically detects multiple header names and groups tasks accordingly — just ask!
"Feito"
Important points:
Your tasks are grouped under headers (## A Fazer, etc) in multiple files inside the "Kanban" folder.
You want three separate queries each showing all tasks under a specific header from all files in that folder.
How to do that?
You can filter on the .file.folder = "Kanban" to limit files in the folder, and filter tasks by their header field.
Example queries for your 3 statuses:
TASK
FROM "Kanban"
WHERE header = "A Fazer" AND !completed
SORT file ASC, text ASC
TASK
FROM "Kanban"
WHERE header = "Fazendo" AND !completed
SORT file ASC, text ASC
TASK
FROM "Kanban"
WHERE header = "Feito" AND completed
SORT file ASC, text ASC
Explanation:
FROM "Kanban" filters to all notes inside the Kanban folder.
header = "A Fazer" (etc) filters tasks to only those under the matching markdown header in each file.
!completed or completed filters the tasks based on completion.
Sorted by file and text to keep the list tidy.
If that didn’t work:
Check the following:
Folder name exact match:
Make sure your folder is exactly named Kanban (case-sensitive). If nested deeper, adjust like:
FROM "parentFolder/Kanban"
Headers exact spelling and spacing:
Headers must exactly match "A Fazer" — including accents and spaces.
Task syntax:
Tasks must be standard markdown task checkboxes - [ ] for Dataview TASK queries to detect them.
Dataview version:
Make sure your Dataview plugin is up-to-date.
Bonus: If you want all three sections grouped in one query without splitting:
TASK
FROM "Kanban"
WHERE header in ("A Fazer", "Fazendo", "Feito") AND !completed
SORT file ASC, text ASC
GROUP BY header
This will show all uncompleted tasks from the three columns grouped under each header.
Adjust the !completed if you want to include done tasks.
If you still have issues, please share a small snippet of your file structure or example notes, so I can help troubleshoot!
Checklist & Debug steps
Confirm folder & file structure
Is your Kanban folder directly under your vault root?
Are files indeed inside Kanban/ folder?
To test, try this query to list all files inside the folder to confirm Dataview sees them:
TABLE file.name, file.folder
FROM "Kanban"
If this returns no results, your folder path is wrong or Dataview can't see files there.
Verify you have tasks with those headers
Open your Kanban files in "source mode" (not preview)
Make sure the headers are exactly:
## A Fazer
- [ ] task 1
- [ ] task 2
## Fazendo
- [ ] task 3
## Feito
- [ ] task 4
Check for:
Exactly 2 # signs (## ) — Dataview uses the section header that holds the task
Correct spelling, accents, and spacing
Test a simple task query without header filter
Try displaying all tasks inside the Kanban folder, ignoring header, to verify tasks are found:
TASK
FROM "Kanban"
WHERE !completed
SORT file ASC
If this is empty, that means tasks aren't detected, so either the folder or task formatting is off.
If you get tasks back, then the problem is filtering by header.
Dataview limitation: header for tasks inside nested headers
Make sure tasks are directly under the header; e.g.:
## A Fazer
- [ ] task 1
### Some Subheader <-- Dataview treats only the immediate parent header
- [ ] task 2
If tasks are nested under subheaders, header will only catch the closest header, possibly not what you expect.
Try to output all tasks with their headers
Create a query to show the header to see what Dataview detects:
TABLE text, header, file.name
FROM "Kanban"
WHERE !completed
This will list tasks with their current header value as seen by Dataview.
Does it show A Fazer, Fazendo or something else? That can help us adjust the header filter.
Summary — next steps for you:
Run these two queries and share results — this helps verify what data Dataview sees:
TABLE file.name, file.folder
FROM "Kanban"
TABLE text, header, file.name
FROM "Kanban"
WHERE !completed
Also, share a small exact copy-paste snippet of your Kanban file markdown (with headers and tasks).
Once I see the actual data output or snippet, I can help tailor a working Dataview query for your setup.
To get tasks only from one header (for example “A Fazer”), you add a header filter like:
TASK
FROM "Kanban"
WHERE !completed AND header = "A Fazer"
SORT created asc
Similarly, for “Fazendo”:
TASK
FROM "Kanban"
WHERE !completed AND header = "Fazendo"
SORT created asc
And “Feito” (for completed tasks):
TASK
FROM "Kanban"
WHERE completed AND header = "Feito"
SORT created asc
What you had vs what you want:
Your original shows all incomplete tasks grouped by header.
You want separate queries for each header’s tasks.
So just add header = "<name>" to your WHERE clause.
Example — showing only A Fazer incomplete tasks:
TASK
FROM "Kanban"
WHERE !completed AND header = "A Fazer"
SORT created asc
Bonus tips:
If you want to sort also by priority (for example, if you tag tasks with #priority/high, #priority/medium):
TASK
FROM "Kanban"
WHERE !completed AND header = "A Fazer"
SORT priority DESC, created ASC
Assuming priority is a tag or inline field you use consistently.
Summary:
Your query shows all tasks grouped by header.
To filter by a single header, just add header = "Header Name" to WHERE.
Repeat per header to get different queries.
Use sorting/filtering on priority if applicable.
If you want, I can help you build a dashboard note with 3 queries side-by-side, each showing tasks from one header (A Fazer, Fazendo, Feito), sorted by priority or created date. Just ask!
not exactly what you expect
Why header = "A Fazer" returns no results when your query without it works?
Dataview’s header here refers to the nearest heading above the task in the note's outline at the level Dataview expects.
If this exact string check doesn't match, no tasks are shown.
How to find what the actual header value is for your tasks?
Run this query to see the tasks with their exact header values:
TABLE text, header, file.name
FROM "Kanban"
WHERE !completed
SORT file.name asc
This will output a table listing each task's text, what its header is, and file name. You can check what Dataview "sees" as the header.
What to do next
Run the above query.
Look at the header column for your tasks.
Copy exact header text from the results (including spaces, accent marks, any trailing spaces).
Use that exact value in your filter, e.g.:
TASK
FROM "Kanban"
WHERE !completed AND header = "<exact header text here>"
SORT created asc
Common gotchas
Header whitespace: Sometimes headers contain extra spaces or invisible characters.
Header level: If your tasks are under sub-headers within ## A Fazer, the immediate section header might be different.
Markdown nuances: Your tasks could be under smaller sub-headers like ### A Fazer or have other structure.
Bonus: Use contains instead of exact match for testing
If you want to test whether the header contains a keyword (useful if headers have extra text), try:
TASK
FROM "Kanban"
WHERE !completed AND contains(header, "A Fazer")
SORT created asc
This will match any header that includes "A Fazer" anywhere.
Summary
The problem is likely exact header value mismatch.
Use the table query above to find out what Dataview sees.
Then match that exact header text (or use contains as a looser match).
That will fix your filtering.
Let me know what results you get from the table query, and I can help you craft the exact filter!
Thanks for that crucial detail: Dataview is not showing any header for your tasks, only the symbol "-" (probably the task bullet). This explains why filtering by header yields no results — the tasks are registered without a recognized section header.
Why does this happen?
Dataview associates a task with a header if the task is directly inside a markdown section heading (like under ## A Fazer).
If the file uses the Kanban plugin format, even though in markdown you see headers, sometimes the tasks inside may be parsed differently, or the plugin uses some special syntax that Dataview does not recognize as being "under" a header.
Another possibility:
The tasks are inside a block or container where Dataview cannot assign a header (for example, inside a code block, or inside YAML or special plugin markup).
Or there's an empty line or some formatting that breaks Dataview’s ability to assign headers.
What to do next?
1. Confirm the exact markdown structure
Make sure your Kanban file looks like this in raw markdown, with no empty lines or wrapped blocks:
## A Fazer
- [ ] Task 1
- [ ] Task 2
## Fazendo
- [ ] Task 3
## Feito
- [ ] Task 4
No empty lines or code blocks between headers and tasks.
2. Try to query headers explicitly
Try this query to see all headers (sections) and tasks inside them, e.g.:
LIST
FROM "Kanban"
WHERE contains(file.text, "A Fazer")
(Not guaranteed to help but just to check if file text is read properly.)
3. Alternative approach: Query by file and header text manually
Since header association doesn't work, you can filter by file or by matching tasks in files where the header appears.
For example, if each file represents a column (A Fazer, Fazendo, Feito), you could filter by filename:
TASK
FROM "Kanban/A Fazer.md"
WHERE !completed
SORT created asc
Do this for each status file.
4. Or filter by task content keywords or tags
If you cannot rely on header, consider adding tags or inline fields to your tasks indicating their status:
TASK
FROM "Kanban"
WHERE !completed AND contains(tags, "status/a-fazer")
SORT created asc
Summary & Recommendations
The root issue is that your tasks lack a Dataview-recognized header (header field is empty).
That’s why filtering by header returns no results and the column is empty.
The cause could be the file format or plugin wrapping tasks in a way Dataview can’t parse headers.
If fixing the markdown structure isn’t feasible, use one of these:
Query by filename (if your "columns" are in separate files)
Add a status tag or inline field to tasks and filter by that
This is the most reliable workaround since header is missing.
If you want, send me a small snippet of the full markdown file including headers exactly as is, and I can check if there’s something breaking header recognition.
If you want, I can help you build a dashboard based on tags or file names instead of headers — which works well with Kanban plugin setups. Just let me know!
Thanks for confirming all your Kanban headers are ## (H2) and tasks are standard markdown tasks under those headers.
Since your header field is empty or missing in Dataview task queries, despite tasks being under H2 headers, this usually means Dataview cannot assign the task to the section header properly.
There are a few reasons this can happen:
1. Tasks are separated from headings by blank lines or special content
Dataview requires tasks to actually be inside the section, i.e. tasks must immediately follow the header (or be under it) in the file.
Example:
## A Fazer
- [ ] Task 1
- [ ] Task 2
If you have blank lines, code blocks, blockquotes, or other things separating them, Dataview might fail to assign the correct header.
2. The Kanban plugin metadata or special comments interfere
And sometimes, the Kanban plugin uses comments or special markers that might break Dataview parsing tasks to headers.
3. Task lines use unusual indentation or characters
Tasks must start exactly with - [ ] to be recognized as markdown tasks by Dataview.
How to fix and confirm header assignment works:
Step 1: Minimal test file
Try creating a simple new test file in the same folder Kanban/test.md with this content:
## A Fazer
- [ ] Task test 1
- [ ] Task test 2
## Fazendo
- [ ] Task test 3
## Feito
- [ ] Task test 4
Step 2: Run this query in your vault:
TABLE text, header, file.name
FROM "Kanban"
WHERE !completed
SORT file.name ASC
If the header comes back properly as A Fazer, Fazendo, Feito for those test tasks, then your problem is specific to how the Kanban plugin writes tasks in your original files, not Dataview itself.
If the header is still blank (-), then:
Confirm you are running the latest Dataview plugin version.
Try disabling other plugins that might affect markdown rendering or task parsing.
Check that tasks indeed have correct markdown syntax (no extra indent).
Step 3: Workarounds if headers don't show correctly in original Kanban files
Use filename-based queries: if each file corresponds to a column, query tasks by file.
Add explicit priority/status inline metadata or tags on each task and query using that instead.
Avoid relying on header property if plugin formatting breaks it.
Summary
Your setup probably breaks Dataview’s header parsing due to the Kanban plugin’s custom metadata or formatting.
The minimal test file will tell if the problem is with Dataview or with plugin formatting.
If plugin formatting breaks headers, best practice is to query tasks via other fields like filenames or tags.
You can build dashboards querying per filename (file per column) or per tag without relying on header.
If you want I can help create a working Kanban dashboard from sample files using either filename or task metadata — just share what would suit best!
Thanks for the snippet!
This is a perfectly valid standard markdown structure:
## A Fazer
- [ ] teste
- [ ] Deixar os arquivos nos soltos, exceto o que realmente merece estar em uma pasta específica
- [ ] Remover pastas inúteis
- - [ ] Remover plugins que não uso mais
- [ ] Mergir todos os css (com descrição de todos comandos) em uso e deixar isolados os em fase de teste
- [ ] Pensar em um dashboard
Given this, Dataview should recognize tasks with header = "A Fazer".
If your query:
TASK
FROM "Kanban"
WHERE !completed
SORT created asc
GROUP BY header
shows all tasks grouped by headers (but header is just - or empty), then it suggests Dataview isn't picking up the header correctly.
Possible causes and solutions:
1. Header and tasks separated by an empty line — This should be fine.
Dataview is able to detect tasks in sections with blank lines after header, so this is okay.
2. Try a simplified query to list tasks with headers and force Dataview to see headers:
Run:
TABLE text, header, file.name
FROM "Kanban"
WHERE !completed
SORT file.name asc, text asc
Check the header column:
If header is empty or -, that confirms the problem.
3. Try upgrading Dataview plugin to latest version
You may be running an older Dataview version with a bug affecting header detection.
4. Check for invisible characters or formatting oddities
Copy-paste your snippet into a new note inside the Kanban folder.
Save and try your query with that new note only.
5. Workaround when Dataview header is empty
If despite all above header remains empty for your tasks, you can group tasks manually by filename or custom inline field.
For example:
Add an inline field/tag on tasks:
## A Fazer
- [ ] teste priority:: high
- [ ] Deixar os arquivos nos soltos priority:: medium
Then query:
TASK
FROM "Kanban"
WHERE !completed AND contains(file.name, "A Fazer")
SORT priority asc
(if filenames differ for columns)
6. Manual grouping via multiple queries
If a single query with GROUP BY header doesn't work as expected, write multiple queries for each header:
TASK
FROM "Kanban"
WHERE header = "A Fazer" AND !completed
SORT created asc
If that returns nothing, consider using other filters like filenames or tags.
7. As last resort: use dataviewjs
You can write custom JavaScript that reads your notes, parses headers manually, and collects tasks.
Summary
Your markdown snippet looks good for Dataview to detect headers.
The fact header is missing suggests an environment or version bug or interaction with other plugins.
Test queries on a clean file with your snippet.
Upgrade Dataview.
If still an issue, use filename or tags as fallback grouping.
If you want, I can help write you a sample dashboard based on filenames or tags that you can start with, avoiding the header issue, until the root cause is fixed. Just say!
Sure! Here is a DataviewJS script that scans all files in your "Kanban" folder, finds all tasks, groups them manually by the closest H2 header (## ...) above each task, and displays them grouped by header. This bypasses Dataview’s built-in header property and does the grouping manually.
How it works
It loads all files from "Kanban".
For each file, parses its content line-by-line.
Tracks the current H2 header.
Collects tasks under their current header.
Finally, renders tasks grouped under each header.
Paste this code block into your note (inside triple backticks with dataviewjs):
const folder = "Kanban"; // folder where your Kanban files live
// Helper to parse lines and find tasks under headers
function parseTasksByHeader(text) {
const lines = text.split("\n");
let currentHeader = null;
const groups = {};
for (let line of lines) {
line = line.trim();
// Detect H2 header (## Header)
const headerMatch = line.match(/^##\s+(.*)/);
if (headerMatch) {
currentHeader = headerMatch[1].trim();
if (!groups[currentHeader]) {
groups[currentHeader] = [];
}
continue;
}
// Detect task line: markdown task "- [ ] " or "- [x] "
const taskMatch = line.match(/^- \[( |x)\] (.*)/);
if (taskMatch && currentHeader) {
const completed = taskMatch[1] === "x";
const text = taskMatch[2];
groups[currentHeader].push({ text, completed });
}
}
return groups;
}
(async () => {
const dv = this.app.plugins.plugins.dataview.api;
// Get all markdown files in folder
const pages = dv.pages(`"${folder}"`).values;
let allGroups = {};
for (const page of pages) {
// Get file content via app.vault.read()
const file = app.vault.getAbstractFileByPath(page.file.path);
if (!file || file.extension !== "md") continue;
const content = await app.vault.read(file);
const groups = parseTasksByHeader(content);
// Merge groups with allGroups
for (const [header, tasks] of Object.entries(groups)) {
if (!allGroups[header]) allGroups[header] = [];
// Add file path info per task
const tasksWithFile = tasks.map(t => ({ ...t, file: page.file.path }));
allGroups[header].push(...tasksWithFile);
}
}
// Render results
for (const [header, tasks] of Object.entries(allGroups)) {
dv.header(2, header);
if (tasks.length === 0) {
dv.paragraph("No tasks found");
continue;
}
dv.taskList(
tasks.map(t => ({
text: t.text,
completed: t.completed,
path: t.file,
})),
false
);
}
})();
What you get
Tasks grouped by H2 header (like A Fazer, Fazendo, Feito).
Tasks show as checkboxes with completion state.
Each task is linked back to the file it belongs to.
Notes
The script loads and parses the raw markdown to manually find headers and tasks.
This avoids relying on Dataview header, which in your case is empty.
You can customize the folder path by changing the folder variable.
You can extend it to filter by completed or priority — just ask!
If you want me to help add filtering, sorting by priority, or layout tweaks, just say!
Kanban
A Fazer
const folder = "Kanban";
const targetHeader = "A Fazer";
function parseTasksByHeader(text, headerToExtract) {
const lines = text.split("\n");
let currentHeader = null;
let tasks = [];
for (let line of lines) {
line = line.trim();
// Detect H2 header (## Header)
const headerMatch = line.match(/^##\s+(.*)/);
if (headerMatch) {
currentHeader = headerMatch[1].trim();
continue;
}
// If we're currently inside the target header...
if (currentHeader === headerToExtract) {
// Detect task line: markdown task "- [ ] " or "- [x] "
const taskMatch = line.match(/^- \[( |x)\] (.*)/);
if (taskMatch) {
const completed = taskMatch[1] === "x";
const text = taskMatch[2];
tasks.push({ text, completed });
}
}
}
return tasks;
}
(async () => {
const dv = this.app.plugins.plugins.dataview.api;
const pages = dv.pages(`"${folder}"`).values;
let allTasks = [];
for (const page of pages) {
const file = app.vault.getAbstractFileByPath(page.file.path);
if (!file || file.extension !== "md") continue;
const content = await app.vault.read(file);
const tasks = parseTasksByHeader(content, targetHeader);
// Attach the file path to each task
const tasksWithFile = tasks.map(t => ({ ...t, file: page.file.path }));
allTasks.push(...tasksWithFile);
}
dv.header(2, targetHeader);
if (allTasks.length === 0) {
dv.paragraph("No tasks found under 'A Fazer'");
return;
}
dv.taskList(
allTasks.map(t => ({
text: t.text,
completed: t.completed,
path: t.file,
})),
false
);
})();
How to use:
Paste this code inside a note inside your vault between triple backticks with dataviewjs.
Make sure your Kanban folder is named exactly Kanban or adjust the variable folder accordingly.
The script will collect only tasks under the ## A Fazer header from all .md files inside that folder.
Tasks show as checkboxes with completion status and link to their source file.
If you later want to add filtering (e.g., only incomplete tasks), or add priority sorting, just ask!
Thanks for testing — if nothing shows, let's debug step-by-step.
Step 1: Verify that Dataview sees your files in the folder "Kanban"
Put this simple query block in your note:
TABLE file.name, file.path
FROM "Kanban"
LIMIT 10
Do you see a table listing your Kanban files?
If no results, your folder name or path is likely not exactly "Kanban", or files are nested deeper.
Confirm your folder structure exactly.
Step 2: Verify the files have the header ## A Fazer
Create a simple query to list the entire content of your Kanban files:
LIST
FROM "Kanban"
You should see the file names with their contents in a list.
Step 3: Verify the JS reads the content
Add this simple DataviewJS to list all file paths and first few characters of content:
const folder = "Kanban";
const dv = this.app.plugins.plugins.dataview.api;
const pages = dv.pages(`"${folder}"`).values;
for (const page of pages) {
const file = app.vault.getAbstractFileByPath(page.file.path);
if (!file || file.extension !== "md") continue;
const content = await app.vault.read(file);
dv.paragraph(`${page.file.name}: ${content.slice(0,50).replace(/\n/g, ' ')}`);
}
Does this print out your file names and beginning of text?
Step 4: Confirm header parsing logic
Try a quick test to output headers found in one file:
Paste this in a new dataviewjs block and change "Kanban/yourfilename.md" to a file path you know:
const filePath = "Kanban/yourfilename.md"; // <-- change this!
const file = app.vault.getAbstractFileByPath(filePath);
if (!file) {
dv.paragraph("File not found: " + filePath);
} else {
const content = await app.vault.read(file);
const lines = content.split("\n");
for (const line of lines) {
if(line.startsWith("## ")) {
dv.paragraph("Header found: " + line);
}
}
}
Do you see your headers (## A Fazer) printed?
Step 5: Once you confirm:
Files are found under "Kanban"
Headers are ## A Fazer exactly
Content is read properly
Try the full JS again.
If you still want, share your folder structure (Kanban/ and files inside), or a sample file content, and I can help you tailor the script perfectly.
Alternative quick test: hardcoded file
Try this minimal code for one file explicitly:
const filePath = "Kanban/example.md"; // change to one of your files
const targetHeader = "A Fazer";
const file = app.vault.getAbstractFileByPath(filePath);
if (!file) {
dv.paragraph("File not found");
} else {
const content = await app.vault.read(file);
const lines = content.split("\n");
let currentHeader = null;
let tasks = [];
for (let line of lines) {
line = line.trim();
const headerMatch = line.match(/^##\s+(.*)/);
if (headerMatch) {
currentHeader = headerMatch[1].trim();
continue;
}
if (currentHeader === targetHeader) {
const taskMatch = line.match(/^- \[( |x)\] (.*)/);
if (taskMatch) {
tasks.push({ text: taskMatch[2], completed: taskMatch[1] === "x" });
}
}
}
if (tasks.length === 0) {
dv.paragraph(`No tasks found under ${targetHeader}`);
} else {
dv.header(2, targetHeader);
dv.taskList(tasks.map(t => ({ text: t.text, completed: t.completed })));
}
}
Let me know the results of these tests so we can narrow down what's blocking the display!
Then your code should be:
const filePath = "Kanban/Projeto X.md"; // exact match
Quick way to get the path inside Obsidian:
Right-click your file in the file explorer panel
Choose Copy relative path
Paste in the code string, like:
const filePath = "Kanban/Projeto X.md";
After that, rerun the test script:
// ...your previous test code with correct filePath...
You should then see the headers and tasks parsed correctly.
If you want, send me the exact folder and file names (you can anonymize task text), and I can prepare the code snippet for you.