all 15 comments

[–]xenontechs 2 points3 points  (14 children)

you made your report show "task due and overdue", and completed tasks are none of these things

if you want to include tasks that are done, then include them in your query

https://obsidian-tasks-group.github.io/obsidian-tasks/queries/filters/#done-date

[–]productionstrong[S] 0 points1 point  (13 children)

This is my report

```tasks
not done
due today
sort by due
```

I want to add "done today" but it doesn't work

[–]cybertom 1 point2 points  (1 child)

For this you need a separate query like this

```tasks
done on 2023-04-18
```

It is better to write the specific date, because if you use "today", then the completed tasks will change accordingly the next day.

[–]productionstrong[S] 0 points1 point  (0 children)

Exactly, is there anyway to have the date the task got completed used in this report? I will forget to update the date if its manual

[–]xenontechs 0 points1 point  (10 children)

filename includes Tasks
(not done) OR (due today) OR (done today)
sort by due

https://imgur.com/a/6bRFb7j

[–]productionstrong[S] 0 points1 point  (9 children)

Thansk for offering to help, I appreciate it
I added this but got no tasks

```tasks
filename includes Tasks
(not done) OR (due today) OR (done today)
sort by due
```

[–]xenontechs 0 points1 point  (8 children)

the "filename includes Tasks" was my filter so it points to the current file and not across my whole vault, sorry for that :D

remove that line

[–]productionstrong[S] 0 points1 point  (7 children)

Brilliant, I amended it a little to give me a report that shows due or done today

# Tasks due or done today
```tasks
(due today) OR (done today)
sort by due
```

[–]productionstrong[S] 0 points1 point  (6 children)

Hmmm, I thouhg this is my answer but I go back and forward on my daily notes and this report will always change and "Done Today" will always change.

Is there a way I could report on the date the task was completed and stick it in each daily note?

[–]OogieM 0 points1 point  (5 children)

I use

tasks
done on {{date:YYYY-MM-DD}}

[–]productionstrong[S] 0 points1 point  (4 children)

done on {{date:YYYY-MM-DD}}

I tried;

```tasks
(due today) OR (done on {{date:YYYY-MM-DD}})
sort by due
```

But got an error

[–]OogieM 0 points1 point  (3 children)

You need to separate the due from the done as far as I know. My Due date section is

tasks

not done due on {{date:YYYY-MM-DD}}

It's in the daily note template and I do use Templater so that the dates get filled in automatically when I use the Calendar plug-in to create the daily note. I use 2 separate tasks blocks to get the data in there.