1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 00:51:31 +00:00

Add column estimated_hours for CSV import (#21867).

Patch by Yuichi Masumiya.

git-svn-id: http://svn.redmine.org/redmine/trunk@15131 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-01-30 15:19:04 +00:00
parent f4bcb1286e
commit 81b681764a
3 changed files with 11 additions and 4 deletions

View File

@ -128,6 +128,9 @@ class IssueImport < Import
if due_date = row_date(row, 'due_date')
attributes['due_date'] = due_date
end
if estimated_hours = row_value(row, 'estimated_hours')
attributes['estimated_hours'] = estimated_hours
end
if done_ratio = row_value(row, 'done_ratio')
attributes['done_ratio'] = done_ratio
end

View File

@ -73,6 +73,10 @@
<label><%= l(:field_due_date) %></label>
<%= mapping_select_tag @import, 'due_date' %>
</p>
<p>
<label><%= l(:field_estimated_hours) %></label>
<%= mapping_select_tag @import, 'estimated_hours' %>
</p>
<p>
<label><%= l(:field_done_ratio) %></label>
<%= mapping_select_tag @import, 'done_ratio' %>

View File

@ -1,4 +1,4 @@
priority;subject;description;start_date;due_date;parent;private;progress;custom;version;category;user
High;First;First description;2015-07-08;2015-08-25;;no;;PostgreSQL;;New category;dlopper
Normal;Child 1;Child description;;;1;yes;10;MySQL;2.0;New category;
Normal;Child of existing issue;Child description;;;#2;no;20;;2.1;Printing;
priority;subject;description;start_date;due_date;parent;private;progress;custom;version;category;user;estimated_hours
High;First;First description;2015-07-08;2015-08-25;;no;;PostgreSQL;;New category;dlopper;1
Normal;Child 1;Child description;;;1;yes;10;MySQL;2.0;New category;;2
Normal;Child of existing issue;Child description;;;#2;no;20;;2.1;Printing;;3

1 priority subject description start_date due_date parent private progress custom version category user estimated_hours
2 High First First description 2015-07-08 2015-08-25 no PostgreSQL New category dlopper 1
3 Normal Child 1 Child description 1 yes 10 MySQL 2.0 New category 2
4 Normal Child of existing issue Child description #2 no 20 2.1 Printing 3