Bug 225254

Summary: Filtering tasks by priority or title and summing their times
Product: [Applications] ktimetracker Reporter: Christoph Lange <langec>
Component: generalAssignee: Thorsten Staerk <dev>
Status: RESOLVED INTENTIONAL    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christoph Lange 2010-02-02 12:13:37 UTC
Version:            (using KDE 4.3.4)
OS:                Linux
Installed from:    Gentoo Packages

Here is a use case that I would like ktimetracker to support, without manual workarounds (e.g. using the script I posted for bug 196133):

1. Filter tasks by priority (or, alternatively, by title, using the existing search bar – I used to encode the priority into the task title, e.g. using “+”)
2. Show the sum of the times (total, or in the current session) spent on the selected tasks (including or not including subtasks)

I do that at the end of each session = week, i.e. figuring out how much of my time I have spent on important tasks.

Choosing whether or not to include subtasks into the sum may not be trivial.  In my case, I had normal, important and very important tasks, and assumed that whenever a supertask was important or very important, its subtasks also were.  In any case, attention has to be paid to the special case when both a supertask and some of its subtasks are in the filtered set – i.e. that the subtask is not forgotten or not counted doubly.
Comment 1 Thorsten Staerk 2011-09-28 16:01:27 UTC
Thanks for your report. First, there is already a priority column in ktimetracker. Right-click in the header row, e.g. on "Total Time", then choose "Priority". You can then sort by priority.

As you describe, as long as your subtasks have the same priority as their parents, this works fine.

For the rest of your bug report I accept patches, but am not willing to write them - reopen this bug and set it on your name to provide a patch.