Hi Scott,
It’s not much, I can offer, but here is what I can come up with. I know that Evan Balster, developer of the formulas plugin [1] is using TW for time tracking. I guess you would have to ask him if he would share his solution.
Over the last weekend I extended my own math plugin RPN so it is now able to sum up all values in a defined field in a filtered set of tiddlers, and I helped a colleague to fix a simple time tracking draft ... you can see the result here:
https://tid.li/tw5/plugins.html#rpnDemo:rpnDemo%20Zeiterfassung%20%5B%5BZEIT%3A%20Test%204%5D%5D%20%5B%5BZEIT%3A%20Test%203%5D%5D%20%5B%5BZEIT%3A%20Test%202%5D%5D%20%5B%5BZEIT%3A%20Test%201%5D%5D%20%24%3A%2Fplugins%2Ftelmiger%2Frpn
The tiddler "Zeiterfassung" can be used as a template, like this:
– I just copied the above code into the task tiddlers (numberes 1 to 4 and prefixex with "ZEIT"). Nr. 4 ist not "done" yet, you can change that using the displayed button. At the moment, the done button calculates the minutes between the
created and the
modified timestamps of a tiddler using anoter macro collection [2] I once made and included in my listreveal plugin [3]. The difference (number of minutes) is then saved in a field
time_used per tiddler.
WARNING: This works for timestamps from the same day. There might be errors if you try to track time over several days, months, ... so no night shifts please!
So the concept of my colleague is to do these steps all on the same day:
- Make a new tiddler when you start working on a task (sets the created timestamp)
- (Comment in the tiddler, what you do)
- Put the template code in the tiddler (you could do that via conditional view template instead of by hand)
- Save the tiddler when you are done (sets the modified timestamp)
- Press the button to save the minutes spent
The rpnDemo tiddler demonstrates how to sum all the minutes ... that’s all I have for now.
On the fields tab of the rpn plugin you will find more info about calculations with fields.
Let us know how it is going. All the best!
Thomas