obsidian-tracker icon indicating copy to clipboard operation
obsidian-tracker copied to clipboard

Filter tasks by obsidian-tasks date

Open aonemd opened this issue 9 months ago • 2 comments

Hello, I use Obsidian-tasks and I keep my tasks in weekly notes so my tasks look something like this:

2025-W08.md

## MON 17-Feb
- [x] Workout: HIIT 📅 2025-02-17 ✅ 2025-02-17
- [x] Read 📅 2025-02-17 ✅ 2025-02-17
- [x] Study: OOP 📅 2025-02-17 ✅ 2025-02-17


## TUE 18-Feb
- [x] Workout: football 📅 2025-02-18 ✅ 2025-02-18
- [x] Read 📅 2025-02-18 ✅ 2025-02-18
- [x] Study: Infra 📅 2025-02-18 ✅ 2025-02-18

...

I'm trying to track my tasks with tracker. Is there a way to pick up the date from the task itself instead of the date of the note file?

aonemd avatar Feb 19 '25 07:02 aonemd

You could try taking a look at TestXDataset.md in the examples. It might support what you want (eg using a tag for the date).

lazyguru avatar Feb 21 '25 05:02 lazyguru

Hey, thanks @lazyguru. I tried something like this:

searchType: task.done, text
searchTarget: 'Today #habit 📅 (?<value>([0-9]{4})-([0-9]{2})-([0-9]{2})), Today #habit 📅 (?<value>([0-9]{4})-([0-9]{2})-([0-9]{2}))'
xDataset: 0
month:

also tried:

searchType: task.done, tag
searchTarget: 'Today #habit 📅 (?<value>([0-9]{4})-([0-9]{2})-([0-9]{2})), #habit'
xDataset: 0
month

both kind of worked but it's rendering/querying only the first occurrence in the task file:

Image

aonemd avatar Feb 22 '25 14:02 aonemd