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: 
{{||Zeiterfassung}}

– 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

[1] https://evanbalster.com/tiddlywiki/formulas.html
[2] 
https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Flib%2Fdates
[3] https://tid.li/tw5/plugins.html#%24%3A%2Fplugins%2Ftelmiger%2Flistreveal

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6e86d078-006d-45f1-8b5a-e3213799a373%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to