Feature #11087
Calculate Total Time Spent on Parent Issue
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Issues | |||
Target version: | - | |||
Resolution: | Fixed |
Description
I noticed that redmine calculates the total estimated time on parent tasks using the estimated time of the sub tasks, it would be awesome to see this for Spent Time as well.
Related issues
History
#1
Updated by Evgeny Zhiryakov about 10 years ago
+1
#2
Updated by Anton Nepomnyaschih about 10 years ago
+1
#3
Updated by Evgeny Zhiryakov about 10 years ago
I think the problem lies in these lines:
In Redmine 1.4:
def total_spent_hours @total_spent_hours ||= self_and_descendants.sum("#{TimeEntry.table_name}.hours", :joins => "LEFT JOIN #{TimeEntry.table_name} ON #{TimeEntry.table_name}.issue_id = #{Issue.table_name}.id").to_f || 0.0 end
In Redmine 1.3:
def spent_hours @spent_hours ||= self_and_descendants.sum("#{TimeEntry.table_name}.hours", :include => :time_entries).to_f || 0.0 end
I tried to replace the new line of old, but it did not help.
#4
Updated by Allan Story de Almeida Martins almost 10 years ago
+ 1 with redmine 2.0.3
#5
Updated by Rodrigo Merola Winterhalter almost 10 years ago
+ 1 with redmine 2.0.3
#6
Updated by Florian Schwab almost 10 years ago
#7
Updated by Daniel Felix over 9 years ago
- Status changed from New to Closed
- Resolution set to Fixed
#8
Updated by Ty You over 8 years ago
I don't see this working in 2.3.2 stable - am I missing a config setting or something? I do not believe so...
Spent time on subtasks do not roll up - I still see zero's in the issues list for the parent tasks.
#9
Updated by Ty You over 8 years ago
I don't see this working in 2.3.2 stable - am I missing a config setting or something? I do not believe so...
Spent time on subtasks do not roll up - I still see zero's in the issues list for the parent tasks.
EDIT: the patch presented in related issue #11253 indeed still seems to work for 2.3.2 stable.