Opened 7 years ago

# TracHoursPlugin integration

Reported by: Owned by: Ryan J Ollos Chris Nelson normal TracJsGanttPlugin normal trachoursplugin, integration 0.11

### Description

I'm currently maintaining the TracHoursPlugin, and plan to do a bunch of improvements. I'd really like to have integration with a Gantt chart.

I'm not sure what would be involved here, but I'd be willing to do some work on it down the road if you'd support the integration.

### comment:1 follow-up:  2 Changed 7 years ago by Chris Nelson

If TracHoursPlugin stores estimated and actual hours as hours (that is, a real number, not hh:mm) in custom fields, it may just work. If it stores hh:mm or something, we could add some configurable parsing. I would definitely be interested in your feedback on making Trac-jsGantt work with TracHoursPlugin.

### comment:2 in reply to:  1 ; follow-up:  3 Changed 7 years ago by Ryan J Ollos

If TracHoursPlugin stores estimated and actual hours as hours ...

Yeah, the value is stored in the database as number of seconds.

I would definitely be interested in your feedback on making Trac-jsGantt work with TracHoursPlugin.

Excellent! I'm currently fixing some bugs and improving the layout of TracHoursPlugin. In a few weeks I'll have time to review all of the source code and can get back to you with some thoughts about how we can make them work together.

Thanks for your interest in making this work!

### comment:3 in reply to:  2 Changed 7 years ago by Chris Nelson

If TracHoursPlugin stores estimated and actual hours as hours ...

Yeah, the value is stored in the database as number of seconds.

It may be that all you have to do is configure days_per_estimate. We store hours and assume an 8-hour day so we have:

# Each unit in estimate is 1/8 of a day
days_per_estimate = 0.125


For seconds, an 8-hour day would be 28,800 seconds so 1/28800 is:

# Each unit in estimate is 1/28000 of a day
days_per_estimate = 0.00003472


Then again, since we're both storing fractions that get kind of unwieldy, maybe I need to have estimate_per_day configured so we'd set 8 and 28800, respectively.

### comment:5 Changed 6 years ago by Chris Nelson

You've been working in TracJsGanttPlugin lately but nothing you did related to TracHoursPlugin. Are we good? Can we close this ticket?

### comment:6 Changed 6 years ago by Ryan J Ollos

I'm not using the TracHoursPlugin at the moment, but slowly working to get it to the point that it is more usable by my team. I should do some quick testing to make sure it works okay with the TracJsGanttPlugin ... I can't think of any reason that it won't though. I can do the testing next weekend and get back to you.

### Modify Ticket

Change Properties