I'm trying to use taskwarrior to track time for billing purposes.
To do that I'm trying to generate a report showing the hours spend on each task. The standard completed report gives the Created and Completed dates but not times, so I cant see how many hours were spent on the task.
$ task completed project:test
ID UUID Created Completed Age Project Description
- fed3daca 2019-09-29 2019-09-29 10min test test1
- 31a8f13e 2019-09-29 2019-09-29 1min test test2
2 tasks
Is this something taskwarrior can do? Thanks
I don't think taskwarrior can create those reports by itself, but you could use timewarrior to do that.
After you set up timewarrior, the time spent on each task will be tracked. Example:
By default you will see how much time you spent on the task. In case you start and stop the task multiple times or want to see the time you spent on a project or on tasks with a certain tag, you can query timewarrior directly:
This shows you the time you spent today on that task. You can also specify a time interval in case you want to see the total time spent on the task/project/tag. Example:
To see how much time you spent on project
testyou can just run:This will also include the tasks named 'test' and tasks with the tag
test.