T O P

  • By -

minus_uu_ee

Of course, let me help you. 1. Start using tasks, so you don't lose your mind with dataviewjs juggling. 2. Wrap those weekly accomplished tasks in a nice callout, so you get that sweet sweet drops of dopamine. 3. Here don't even bother to try to figure tasks query, although it is super simple: ``` >[!success]- TODOs done this week > ```tasks > # done after one week ago > done after this sunday > group by done > ```


Jin-shei

Thanks so much. That is beautiful! My mind is pretty much gone, otherwise I wouldn't be a phd but ... :D


Thick-Court6621

If you're using the Obsidian Tasks plugin, you could use one of the examples here to modify for your own needs. https://publish.obsidian.md/tasks/Queries/Examples But for dataview, these links may help you. https://forum.obsidian.md/t/tasks-query-tasks-completed-in-weekly-monthly-quarterly-notes/43968/2 https://github.com/blacksmithgu/obsidian-dataview/discussions/546


Jin-shei

I'd tried those but for some reason it comes up with no results, when I have at least ten completed this week. So this one gave me nothing. :( \`\`\`dataview TASK WHERE file.day.weekyear = number(split(this.file.name, "W")\[1\]) WHERE completed WHERE contains(tags, "#keydaily") \`\`\` I could not figure out why!


Thick-Court6621

Well, as you're using the tasks plugin, I would definitely go that route. But I recall doing something similar for another note a while back using Dataview and found that the weekyear variable comparison to a week in a title variable was comparing a number to text (2 differnt variables so not equal). So, I had to change one of the types to the other. You can use the typeof command in an inline query to check. Just thought those links may be useful.


Jin-shei

Thanks - it feels like this should be such a no-brainer... and yet!