@@ -1,32 +1,32 | |||||
1 | xml.instruct! |
|
1 | xml.instruct! | |
2 |
xml.issues :type => 'array' |
|
2 | xml.issues :type => 'array' do | |
3 | @issues.each do |issue| |
|
3 | @issues.each do |issue| | |
4 | xml.issue do |
|
4 | xml.issue do | |
5 | xml.id issue.id |
|
5 | xml.id issue.id | |
6 | xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil? |
|
6 | xml.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil? | |
7 | xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil? |
|
7 | xml.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil? | |
8 | xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil? |
|
8 | xml.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil? | |
9 | xml.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil? |
|
9 | xml.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil? | |
10 | xml.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil? |
|
10 | xml.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil? | |
11 | xml.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil? |
|
11 | xml.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil? | |
12 | xml.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil? |
|
12 | xml.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil? | |
13 | xml.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil? |
|
13 | xml.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil? | |
14 |
|
14 | |||
15 | xml.subject issue.subject |
|
15 | xml.subject issue.subject | |
16 | xml.description issue.description |
|
16 | xml.description issue.description | |
17 | xml.start_date issue.start_date |
|
17 | xml.start_date issue.start_date | |
18 | xml.due_date issue.due_date |
|
18 | xml.due_date issue.due_date | |
19 | xml.done_ratio issue.done_ratio |
|
19 | xml.done_ratio issue.done_ratio | |
20 | xml.estimated_hours issue.estimated_hours |
|
20 | xml.estimated_hours issue.estimated_hours | |
21 |
|
21 | |||
22 | xml.custom_fields do |
|
22 | xml.custom_fields do | |
23 | issue.custom_field_values.each do |custom_value| |
|
23 | issue.custom_field_values.each do |custom_value| | |
24 | xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name |
|
24 | xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name | |
25 | end |
|
25 | end | |
26 | end |
|
26 | end | |
27 |
|
27 | |||
28 | xml.created_on issue.created_on |
|
28 | xml.created_on issue.created_on | |
29 | xml.updated_on issue.updated_on |
|
29 | xml.updated_on issue.updated_on | |
30 | end |
|
30 | end | |
31 | end |
|
31 | end | |
32 | end |
|
32 | end |
General Comments 0
You need to be logged in to leave comments.
Login now