Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the First Task Item in Callout Losing Data #2359

Open
Deanly opened this issue Jun 10, 2024 · 7 comments
Open

Issue with the First Task Item in Callout Losing Data #2359

Deanly opened this issue Jun 10, 2024 · 7 comments
Labels
bug Something isn't working.

Comments

@Deanly
Copy link

Deanly commented Jun 10, 2024

What happened?

image

Issue:
Dataview is unable to recognize the first task item written inside a Callout in all cases.

Description:
In the image above, "task item 01" in Data 1 is a Task item written inside a Callout. This item is missing from the Dataview, as shown in the example. Moreover, when clicking on the checkbox for the item in Dataview, it does not recognize the item correctly. The image shows the state after clicking the checkbox for "task item 03" only once in Dataview.

Version Information:
Below are the version details I have verified.

  • Bug Found Version:
    • Obsidian: v1.6.3
    • Dataview: 0.5.66
  • Working Version:
    • Obsidian: v1.5.3
    • Dataview: 0.5.64

DQL

No response

JS

No response

Dataview Version

0.5.66

Obsidian Version

1.6.3

OS

MacOS

@Deanly Deanly added the bug Something isn't working. label Jun 10, 2024
@Deanly
Copy link
Author

Deanly commented Jun 10, 2024

/test/test.md

Tasks

Data 1

> [!Callout]+ Data in Callout
> - [ ] task item 01
> - [ ] task item 03

Data 2

> [Blockquote]- Data
> - [ ] task item 02
> - [ ] task item 04

Data 3

  • task item 05

Dataview

\```dataviewjs
 dv.taskList(dv.pages('"test"')
 		.file
 		.tasks
 	   , false)
\```

@Kazeheki
Copy link

I got the same issue with DQL as well.

Example with same markdown as already provided:

## with DQL

```dataview
TASK
WHERE file.path = this.file.path
```

```dataview
TABLE WITHOUT ID
T.text AS "task desc", 
T.checked AS "checked",
T.completed AS "completed"
WHERE file.path = this.file.path
FLATTEN file.tasks AS T
```

image

@WingerathM
Copy link

If the callout has no title aka only has the callout "type" in brackets, everything works as expected.

> [!todo]
> - [ ] some task

and

```dataview
TASK
WHERE !completed
```

correctly returns

Todo

  • some task

@Deanly
Copy link
Author

Deanly commented Jun 21, 2024

@WingerathM
Thank you. With your suggested method, I can also use the folding feature (+, -) in callouts. For the time being, I'll have to use it without the title in the callout.

@claremacrae
Copy link

Hi, I've written documentation for the Tasks plugin about the underlying Obsidian issue which will also be useful to dataview users:

Missing tasks in callouts with some Obsidian 1.6.x versions

I will update the page as the Obsidian behaviour improves.

@Deanly Deanly closed this as completed Jun 25, 2024
@claremacrae
Copy link

Hi @Deanly in what way is this completed?

in the Tasks plugin I’ve left the equivalent ticket open so it, and the link to more info, is discoverable to other users finding the problem. And to prevent duplicate reports.

I would strongly recommend leaving this ticket open until Obsidian is properly fixed.

@Deanly Deanly reopened this Jun 25, 2024
@claremacrae
Copy link

From the Obsidian team:

In version 1.6.5 a new advanced settings has been introduced to force rebuild the metadata cache.

If you are affected by this issue, go to Settings → Files and links → Advanced → Rebuild vault cache.

You will need to do this on all vaults, on all devices...

I've updated the Tasks notes on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants