トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

Redmineのチケット情報に履歴を出力

Last-modified: 2013-08-24 (土) 02:14:21 (3898d)
Top / Redmineのチケット情報に履歴を出力

Redmineのチケット情報に履歴を出力

このサイトを参考に、1カラムに履歴が出力されるようにパッチを当ててみました。

変更内容は以下の通り(diffの出力です。)

diff app/helpers/issues_helper.rb app/helpers/issues_helper.rb.org 
227,229c227
< #                  l(:field_updated_on)
<                   l(:field_updated_on),
<                   l(:field_description)
---
>                   l(:field_updated_on)
237,238c235
< #      csv << headers.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end }
<       csv << headers.collect {|c| begin; c.to_s.tosjis; rescue; c.to_s; end }
---
>       csv << headers.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end }
261,269c258
< #        csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end }
<       tmp = ""
<         Journal.find(:all,
<                      :conditions => ["journalized_id= ?", issue.id],
<                      :order => :created_on).map(&:notes).uniq.each do |note|
<           tmp += "#{note}\x0D\x0A"
<         end
<       fields << tmp
<         csv << fields.collect {|c| begin; c.to_s.tosjis; rescue; c.to_s; end }
---
>         csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end }