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

Setting month tracker for habit streaks done in Tasks plugin

Open Zataghni opened this issue 1 year ago • 1 comments

I've been cracking my brain trying to set this one up, but I can't quite do it so I'm asking for a suggestion on how to implement this or as a feature if it's not possible at the current version of the plugin.

I want to setup a month tracker to display the streak of a recurring task within a single note, with the x dataset being pulled from each recurrence's done date and the y dataset as true or false. An added bonus would be displaying whether or not a task's done date corresponds to it's due date.

To set up a habit task, I'm using the Tasks plugin to create a recurring task within a file named after a habit item. For instance, here's how a habit note looks like in my vault:


title: Practice drawing tags: [" #habits "] type: habit

[!info]- Data Related: [[Drawing]

History:

  • [ ] #action Practice drawing #habit 🔁 every day when done 🛫 2023-03-12
  • [x] #action Practice drawing #habit 🔁 every day when done 🛫 2023-03-11 ✅ 2023-03-11
  • [x] #action Practice drawing #habit 🔁 every day when done 🛫 2023-03-10 ✅ 2023-03-10
  • [x] #action Practice drawing #habit 🔁 every day when done 🛫 2023-03-06 ✅ 2023-03-09

The done dates are signaled by the ✅ emoji.

I would share my attempts if I hadn't erased them out of frustration, so I'm posting this as an open question to see if someone has tried to setup a similar tracking in their vaults.

Thank you in advance for sharing your thoughts on this!

Zataghni avatar Mar 13 '23 15:03 Zataghni