obsidian-tasks: Error with Tasks in Titled Callouts – Obsidian v1.6.0 to v1.6.4 [fixed by making v1.6.5 recreate its cache]
Please check that this issue hasn’t been reported before.
- I searched previous Bug Reports didn’t find any similar reports.
Expected Behavior
Running Tasks Query on the current file.path should find all Tasks in Callouts.
Current behaviour
Starting in Obsidian V1.6.3, What I have been able to reproduce is when I have nested callouts, the number of tasks in the query is incorrect based on the number of callout levels.
i.e.
I have: Header Callout(Month), then Group Callout, then Task Callout. In the Task Callout I have four Tasks. In the Query it will ignore the first three tasks. If I remove the Header Callout and have only two levels of nested Callouts, it will ignore only the first two Tasks.
Basically – The number of nested callouts = number of ignored Tasks. If 3 callouts nested, only Task4 is found.
The Query is simply:
```tasks
not done
path includes {{query.file.path}}
```
And the test md is:
> [!Calendar]+ MONTH
>> [!Check]+ GROUP
>>> [!Attention]+ Correction TITLE
>>> Some stuff goes here
>>> - [ ] Correction1
>>> - [ ] Correction2
>>> - [ ] Correction3
>>> - [ ] Correction4
Steps to reproduce
- Using Obsidian V1.6.3. Both my personal vault and the Sandbox vault.
- In the Sandbox vault, Install Tasks plugin.
- No other plugins added.
- Use task query above and sample test md.
Which Operating Systems are you using?
- Android
- iPhone/iPad
- Linux
- macOS
- Windows
Obsidian Version
1.6.3
Tasks Plugin Version
7.4.0
Checks
- I have tried it with all other plugins disabled and the error still occurs
Possible solution
This appears to be an Obsidian problem not a Tasks issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 27
Commits related to this issue
- test: - Update metadata generated by Obsidian 1.6.4 for labelled callouts This required forcing Obsidian to regenerate its cache for the following files, by editing them, so its fix for its cause of ... — committed to obsidian-tasks-group/obsidian-tasks by claremacrae 2 years ago
- Merge pull request #2905 from obsidian-tasks-group/test-nested-callouts test: Add tests of Obsidian cache with labelled callouts - see #2890 — committed to obsidian-tasks-group/obsidian-tasks by claremacrae 2 years ago
- docs: Write up the Obsidian 1.6.x titled callouts issue See #2890 — committed to obsidian-tasks-group/obsidian-tasks by claremacrae 2 years ago
- docs: Write up the Obsidian 1.6.x titled callouts issue (#2910) See #2890 — committed to obsidian-tasks-group/obsidian-tasks by claremacrae 2 years ago
By removing all my custom callout labels, I can verify that the Task query worked as it should and returned all tasks.
The Tasks docs write-up is well done and should help guide other users with similar callout issues. Thank you for all the efforts here!
Hi, I’ve written documentation for the Tasks plugin about the underlying Obsidian issue:
Missing tasks in callouts with some Obsidian 1.6.x versions
I will update the page as the Obsidian behaviour improves.
Can confirm! Adding an edit immediately brought back the proper tasks query results. Many thanks for following up on this.
I can also confirm that this update had no impact on the issue. Still missing tasks in query if custom labels used in callouts.
Magnificent, thanks for escalating this in the Obsidian Forums!
Awesome - thank you both very much indeed!
@claremacrae Sure, no problem!
Here’s the text block:
and here is the query. You’ll have to update the folder path accordingly.
I’m not sure this is part of the same issue, but it seems like it:
When you have a task in a callout and you use a custom label for the Callout, the first task in the callout is NOT being picked up by the task query.
Here is an Example of a callout with a custom label and two tasks
Here is the tasks query:
Here is the rendered tasks query:
As you can see, the first task is missing in the query. If I now remove the custom label from the callout, I get the following block:
This block is now rendered correctly as following in the tasks query:
Can someone reproduce this? Is this part of the issue from 1.6.3 or an issue from tasks?
Thanks in advance for the help!