I am looking for your best practices on task tracking.
I am using daily notes to structure my day, with some boilerplate for the whole day followed by blocks where I currently write down the timeframe (10:00 -10:30 i.e.) and what I was working on, written as a comment. The comment includes a project tag.
I would like to have an overview on how much time I spent on each “project” over the course of the year.
As I understood it, most of the solutions out there use properties or tags, but I am not sure how to seperate between multiple entries in one notes-file. How are you handling that?
Dataview allows to calculate totals of found values. That would allow you to explicitly write down a “time spend” value. See Dataview sum of all prices in table - #2 by smiggles for how dataview is used to calculate a sum. A search on tag would retrieve all instances independent on whether they occur in the same or different files.
Here I’ve done the total calculation outside of the table in a separate inline query focusing on the current file.
Similar queries can also be built over multiple files.
There are a few main points I would like to make though:
To make dataview pick up the information as fields you need to use syntax like above with double colons
Fields are connected either to the page, or to a list/task context. To be able to keep the project and timespent together you need to have them in a list context. Otherwise they’re all collated into two (or more) separate lists of the project and timespent (and comment) .
If you note the timespent as duration, it’s a lot easier to sum them up later on, and you can use durationformat() or similar measures to make it look pretty
This forum also holds various ways to do the summation of a column within the table (or as a postprocessing of the table).