In this case I use a quirk of repeating tasks, but that doesn’t matter for your use case as you’re always logging time and thus all tasks have a logbook entry.
Now the query tasks shows the tasks that i spent time on for that day.
What it does not do (yet) show the time that i spent on that day. It now shows the complete block.
If i would like to calculate the time i spent on that day. i would probably:
extend the regex to match the time spent for a CLOCK: entry in the block: => hh:mm:ss
find out how to do math operations in coljure/datascript and sum up matched times
Good to hear you could improve upon my initial concept!
So math you can do in simple statements as [(+ ?var1 ?var2) ?result]
I just don’t know how that works in the context of re-seq and multimatches.
You have to fiddle around with that.
You can find any variable actually. :find ?var
It’ll spit out the value only this way. Valuable for debugging as well.
You can also add :keys keyname underneath :find to define names for the variables.
Multiple are possible as well.
I want to know this too, but am verrrrrry out of my depth here!
Essentially I just want to be able to add to my daily journal template a (query) section that checks all logbook entries across all my tasks and displays the name of the task and how much time it was in “DOING” state that day (i.e., how much time I worked on it that day).
It would be kind of cool if I could also exclude tasks from certain pages, but it’s by no means a priority.
It sounds like all this is possible, but I don’t even know where to start