Redmine の CSV出力に作業時間の記録を追加してみた。
11月 3rd, 2010 by mattari
Redmineのチケット一覧を CSV に出力すると、「予定工数」は出るのに、なぜか「作業時間の記録」が出力されないので、追加してみました。
「予定工数」の後ろあたりに出力するようにしました。
$REDMINE_PATH/app/redmine/helpers/issues_helper.rb
@@ -206,6 +206,7 @@
l(:field_due_date),
l(:field_done_ratio),
l(:field_estimated_hours),
+ l(:label_spent_time),
l(:field_parent_issue),
l(:field_created_on),
l(:field_updated_on)
@@ -233,8 +234,9 @@
format_date(issue.due_date),
issue.done_ratio,
issue.estimated_hours.to_s.gsub(‘.’, decimal_separator),
+ issue.spent_hours,
issue.parent_id,
format_time(issue.created_on),
format_time(issue.updated_on)
]
custom_fields.each {|f| fields << show_value(issue.custom_value_for(f)) }