Patch #21867 ยป patch.diff
app/models/issue_import.rb | ||
---|---|---|
128 | 128 |
if due_date = row_date(row, 'due_date') |
129 | 129 |
attributes['due_date'] = due_date |
130 | 130 |
end |
131 |
if estimated_hours = row_value(row, 'estimated_hours') |
|
132 |
attributes['estimated_hours'] = estimated_hours |
|
133 |
end |
|
131 | 134 |
if done_ratio = row_value(row, 'done_ratio') |
132 | 135 |
attributes['done_ratio'] = done_ratio |
133 | 136 |
end |
app/views/imports/_fields_mapping.html.erb | ||
---|---|---|
74 | 74 |
<%= mapping_select_tag @import, 'due_date' %> |
75 | 75 |
</p> |
76 | 76 |
<p> |
77 |
<label><%= l(:field_estimated_hours) %></label> |
|
78 |
<%= mapping_select_tag @import, 'estimated_hours' %> |
|
79 |
</p> |
|
80 |
<p> |
|
77 | 81 |
<label><%= l(:field_done_ratio) %></label> |
78 | 82 |
<%= mapping_select_tag @import, 'done_ratio' %> |
79 | 83 |
</p> |
test/fixtures/files/import_issues.csv | ||
---|---|---|
1 |
priority;subject;description;start_date;due_date;parent;private;progress;custom;version;category;user |
|
2 |
High;First;First description;2015-07-08;2015-08-25;;no;;PostgreSQL;;New category;dlopper |
|
3 |
Normal;Child 1;Child description;;;1;yes;10;MySQL;2.0;New category; |
|
4 |
Normal;Child of existing issue;Child description;;;#2;no;20;;2.1;Printing; |
|
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 |