diff -crB redmine_xls_export/app/views/settings/_xls_export_settings.html.erb /home/picman/prj/redmine_xls_export/app/views/settings/_xls_export_settings.html.erb
*** redmine_xls_export/app/views/settings/_xls_export_settings.html.erb	2011-02-08 19:06:12.000000000 +0100
--- /home/picman/prj/redmine_xls_export/app/views/settings/_xls_export_settings.html.erb	2011-09-02 15:17:07.000000000 +0200
***************
*** 1,5 ****
  
! <% fields_all = [['relations','watchers','description', 'time','attachments' ], ['query_columns_only','group','generate_name'] ] %>
  <% fields_all.each do |c|%>
  	<div class="box tabular">
  	<p><% c.each do |fnm| -%>
--- 1,5 ----
  
! <% fields_all = [['relations','watchers','description', 'history', 'time','attachments' ], ['query_columns_only','group','generate_name'] ] %>
  <% fields_all.each do |c|%>
  	<div class="box tabular">
  	<p><% c.each do |fnm| -%>
diff -crB redmine_xls_export/config/locales/bg.yml /home/picman/prj/redmine_xls_export/config/locales/bg.yml
*** redmine_xls_export/config/locales/bg.yml	2011-02-08 08:16:56.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/bg.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "Експорт на връзките"
    label_plugin_xlse_watchers: "Експорт на наблюдателите"
    label_plugin_xlse_description: "Експорт на описанията"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "Експорт на употребеното време"
    label_plugin_xlse_attachments: "Списък на прикачените файлове"
    label_plugin_xlse_query_columns_only: "Експорт само на избраните колони"
***************
*** 22,24 ****
--- 23,27 ----
    label_plugin_xlse_export_format_quick_tooltip: "Експортиране с опции по подразбиране"
    label_plugin_xlse_export_format_detailed: "Подробно"
    label_plugin_xlse_export_format_detailed_tooltip: "Избор на опции преди експортиране"
+   
+   field_history: "History"
diff -crB redmine_xls_export/config/locales/cs.yml /home/picman/prj/redmine_xls_export/config/locales/cs.yml
*** redmine_xls_export/config/locales/cs.yml	2011-01-27 09:21:16.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/cs.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "Exportovat vazby"
    label_plugin_xlse_watchers: "Exportovat sledování"
    label_plugin_xlse_description: "Exportovat popis"
+   label_plugin_xlse_history: "Exportovat historii"
    label_plugin_xlse_time: "Exportovat strávený čas"
    label_plugin_xlse_attachments: "Vypsat přílohy"
    label_plugin_xlse_query_columns_only: "Exportovat pouze zvolené sloupce"
***************
*** 17,19 ****
--- 18,22 ----
    
    label_plugin_xlse_field_attachment: "Přílohy"
    
+   field_history: "Historie"
+   
diff -crB redmine_xls_export/config/locales/de.yml /home/picman/prj/redmine_xls_export/config/locales/de.yml
*** redmine_xls_export/config/locales/de.yml	2011-02-08 19:04:20.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/de.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "Ticket-Beziehnungen exportieren"
    label_plugin_xlse_watchers: "Beobachter exportieren"
    label_plugin_xlse_description: "Beschreibungen exportieren"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "Aufgewendete Zeit exportieren"
    label_plugin_xlse_attachments: "Anhänge auflisten"
    label_plugin_xlse_query_columns_only: "Nur ausgewählte Spalten exportieren"
***************
*** 22,24 ****
--- 23,27 ----
    label_plugin_xlse_export_format_quick_tooltip: "Exportiere mit Standard Einstellungen"
    label_plugin_xlse_export_format_detailed: "Detailierter Export"
    label_plugin_xlse_export_format_detailed_tooltip: "Wähle Export Optionen"
+   
+   field_history: "Historie"
diff -crB redmine_xls_export/config/locales/en.yml /home/picman/prj/redmine_xls_export/config/locales/en.yml
*** redmine_xls_export/config/locales/en.yml	2011-02-08 08:07:46.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/en.yml	2011-09-06 13:47:33.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "Export relations"
    label_plugin_xlse_watchers: "Export watchers"
    label_plugin_xlse_description: "Export description"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "Export spent time"
    label_plugin_xlse_attachments: "List attachments"
    label_plugin_xlse_query_columns_only: "Export selected columns only"
***************
*** 22,25 ****
--- 23,28 ----
    label_plugin_xlse_export_format_quick_tooltip: "Export using default settings"
    label_plugin_xlse_export_format_detailed: "Detailed"
    label_plugin_xlse_export_format_detailed_tooltip: "Choose options before export"
+   
+   field_history: "History"
  
diff -crB redmine_xls_export/config/locales/ja.yml /home/picman/prj/redmine_xls_export/config/locales/ja.yml
*** redmine_xls_export/config/locales/ja.yml	2011-02-13 07:22:18.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/ja.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "関連を出力"
    label_plugin_xlse_watchers: "ウォッチャーを出力"
    label_plugin_xlse_description: "説明を出力"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "作業時間を出力"
    label_plugin_xlse_attachments: "添付ファイルのリストを出力"
    label_plugin_xlse_query_columns_only: "選択した列だけを出力"
***************
*** 22,25 ****
--- 23,28 ----
    label_plugin_xlse_export_format_quick_tooltip: "標準の設定で出力する"
    label_plugin_xlse_export_format_detailed: "オプション"
    label_plugin_xlse_export_format_detailed_tooltip: "オプションを指定して出力する"
+   
+   field_history: "History"
  
diff -crB redmine_xls_export/config/locales/ru.yml /home/picman/prj/redmine_xls_export/config/locales/ru.yml
*** redmine_xls_export/config/locales/ru.yml	2011-02-07 20:41:46.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/ru.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "Экспортировать отношения"
    label_plugin_xlse_watchers: "Экспортировать наблюдатeлей"
    label_plugin_xlse_description: "Экспортировать описания"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "Экспортировать затраченное время"
    label_plugin_xlse_attachments: "Список вложений"
    label_plugin_xlse_query_columns_only: "Экспортировать только выделенные поля"
***************
*** 22,24 ****
--- 23,27 ----
    label_plugin_xlse_export_format_quick_tooltip: "Сохранить в XLSб используя значения по умолчанию"
    label_plugin_xlse_export_format_detailed: "Подробный"
    label_plugin_xlse_export_format_detailed_tooltip: "Выбрать опции перед сохранением в XLS"
+   
+   field_history: "исто́рия"
diff -crB redmine_xls_export/config/locales/zh.yml /home/picman/prj/redmine_xls_export/config/locales/zh.yml
*** redmine_xls_export/config/locales/zh.yml	2011-02-14 13:30:34.000000000 +0100
--- /home/picman/prj/redmine_xls_export/config/locales/zh.yml	2011-09-06 13:51:14.000000000 +0200
***************
*** 2,7 ****
--- 2,8 ----
    label_plugin_xlse_relations: "导出关系"
    label_plugin_xlse_watchers: "导出跟踪者"
    label_plugin_xlse_description: "导出描述"
+   label_plugin_xlse_history: "Export history"
    label_plugin_xlse_time: "导出耗时"
    label_plugin_xlse_attachments: "列出附件"
    label_plugin_xlse_query_columns_only: "仅导出选中"
***************
*** 21,23 ****
--- 22,26 ----
    label_plugin_xlse_export_format_quick_tooltip: "使用默认设置导出"
    label_plugin_xlse_export_format_detailed: "详情"
    label_plugin_xlse_export_format_detailed_tooltip: "导出之前选择配置"
+   
+   field_history: "History"
diff -crB redmine_xls_export/init.rb /home/picman/prj/redmine_xls_export/init.rb
*** redmine_xls_export/init.rb	2011-02-14 13:39:16.000000000 +0100
--- /home/picman/prj/redmine_xls_export/init.rb	2011-09-02 15:17:06.000000000 +0200
***************
*** 28,33 ****
--- 28,34 ----
                 'relations' => '1',
                 'watchers' => '1',
                 'description' => '1',
+                'history' => '0',
                 'time' => '0',
                 'attachments' => '0',
                 'query_columns_only' => '0',
diff -crB redmine_xls_export/lib/xls_export.rb /home/picman/prj/redmine_xls_export/lib/xls_export.rb
*** redmine_xls_export/lib/xls_export.rb	2010-09-22 15:19:06.000000000 +0200
--- /home/picman/prj/redmine_xls_export/lib/xls_export.rb	2011-09-06 13:44:12.000000000 +0200
***************
*** 40,45 ****
--- 40,46 ----
  # :watchers - export watchers
  # :time - export time spent
  # :description - export descriptions
+ # :history - export history
  # :attachments - export attachments info
  # :query_columns_only - export only columns from actual query
  # :group - group by query grouping  
***************
*** 52,57 ****
--- 53,59 ----
  			show_watchers = options[:watchers] 
  			show_time = options[:time]
  			show_descr = options[:description]
+       show_hist = options[:history]
  			query_columns_only = options[:query_columns_only]
  			show_attachment = options[:attachments]
  			group_by_query = query.grouped? ? options[:group] : false
***************
*** 81,87 ****
      	
      	if show_descr == '1'
  	    	issue_columns << QueryColumn.new(:description)
!     	end
  	    
  	    sheet1 = nil
  			group = false
--- 83,93 ----
      	
      	if show_descr == '1'
  	    	issue_columns << QueryColumn.new(:description)
! 	   end
!     
!       if show_hist == '1'
!         issue_columns << QueryColumn.new(:history)
!       end
  	    
  	    sheet1 = nil
  			group = false
***************
*** 151,156 ****
--- 157,181 ----
  									end
  								end
  								descr_str
+ 						when :history
+                 hist_str = '' 
+                 issue_updates = issue.journals.find(
+                           :all, :include => [:user, :details],
+                           :order => "#{Journal.table_name}.created_on ASC")
+                 for journal in issue_updates                    
+                     hist_str << format_time(journal.created_on) + " - " + journal.user.name
+                     hist_str << "\n"                    
+                     for detail in journal.details
+                       hist_str <<  " - " + show_detail(detail, true)
+                       hist_str << "\n" unless detail == journal.details.last
+                     end
+                     if journal.notes?
+                       hist_str << "\n" unless journal.details.empty?
+                       hist_str << journal.notes.to_s
+                     end
+                     hist_str << "\n" unless journal == issue_updates.last
+                   end
+                 hist_str
  							when :formatted_relations
  								rel_str = ''
  								relations = issue.relations.select {|r| r.other_issue(issue).visible?}
***************
*** 186,192 ****
  						end
  					end
  					
! 					value = ['Time', 'Date', 'Fixnum', 'Float', 'Integer', 'String'].include?(v.class.name) ? v : v.to_s
  
  					lf_pos = get_value_width(value)
  					columns_width[j+1] = lf_pos unless columns_width[j+1] >= lf_pos
--- 211,217 ----
  						end
  					end
  					
! 					value = ['Time', 'Date', 'Fixnum', 'Float', 'Integer', 'String', 'String'].include?(v.class.name) ? v : v.to_s
  
  					lf_pos = get_value_width(value)
  					columns_width[j+1] = lf_pos unless columns_width[j+1] >= lf_pos
