Joel Meador

rants and raves

Archive for November 2008

Export Spent Time Column to CSV in Redmine

without comments

Follow these instructions to get the spent time field to appear in the default csv export of issues in redmine.

1. To lang/en.yml, add a line at the end of the ‘field_x’ lines (line 182-ish):
  field_spent_hours: Spent time
2. To app/helpers/issues_helper.rb add (at line 142) a new header to ‘headers’:
  l(:field_spent_hours)
3. To app/helpers/issues_helper.rb add (as line 169) a new field to ‘fields’:
  issue.spent_hours

Now you are exporting spent time.

Completed in Redmine 7.0.3

Written by joelmeador

November 30, 2008 at 9:16 am

Posted in code

Tagged with

Add Spent Time / Spent Hours Column to Redmine’s Default Issues List

with one comment

Follow these instructions to get the spent time field to appear in the default list of issues in redmine.

1. To lang/en.yml, add a line at the end of the ‘field_x’ lines (line 182-ish):
  field_spent_hours: Spent time
2. To app/models/query.rb (somewhere around line 108-110 depending on where you want it to appear), add:
  QueryColumn.new(:spent_hours),

Now you have a non-sorting column in your default view.

Completed in Redmine 7.0.3

Written by joelmeador

November 30, 2008 at 9:10 am

Posted in code

Tagged with