Project

General

Profile

Get time by issue type

Added by baptiste gauthier almost 11 years ago

Hello,

Sorry for my bad english, I am french :(

On the projects_controller.rb, I would like to recover the time spent for the ticket that the "Maintenance" type.

I view :
@total_hours = TimeEntry.visible.sum(:hours, :include => :project, :conditions => cond).to_f

But I can not add a condition to count only tickets that have the status "Maintenance"

I've added a screenshot for you to understand what is in the "Maintenance" type

Can you help me?
thank you
Baptiste