@@ -1,56 +1,56 | |||
|
1 | 1 | xml.instruct! |
|
2 | 2 | xml.issue do |
|
3 | 3 | xml.id @issue.id |
|
4 | 4 | xml.project(:id => @issue.project_id, :name => @issue.project.name) unless @issue.project.nil? |
|
5 | 5 | xml.tracker(:id => @issue.tracker_id, :name => @issue.tracker.name) unless @issue.tracker.nil? |
|
6 | 6 | xml.status(:id => @issue.status_id, :name => @issue.status.name) unless @issue.status.nil? |
|
7 | 7 | xml.priority(:id => @issue.priority_id, :name => @issue.priority.name) unless @issue.priority.nil? |
|
8 | 8 | xml.author(:id => @issue.author_id, :name => @issue.author.name) unless @issue.author.nil? |
|
9 | 9 | xml.assigned_to(:id => @issue.assigned_to_id, :name => @issue.assigned_to.name) unless @issue.assigned_to.nil? |
|
10 | 10 | xml.category(:id => @issue.category_id, :name => @issue.category.name) unless @issue.category.nil? |
|
11 | 11 | xml.fixed_version(:id => @issue.fixed_version_id, :name => @issue.fixed_version.name) unless @issue.fixed_version.nil? |
|
12 | xml.parent(:id => issue.parent_id) unless @issue.parent.nil? | |
|
12 | xml.parent(:id => @issue.parent_id) unless @issue.parent.nil? | |
|
13 | 13 | |
|
14 | 14 | xml.subject @issue.subject |
|
15 | 15 | xml.description @issue.description |
|
16 | 16 | xml.start_date @issue.start_date |
|
17 | 17 | xml.due_date @issue.due_date |
|
18 | 18 | xml.done_ratio @issue.done_ratio |
|
19 | 19 | xml.estimated_hours @issue.estimated_hours |
|
20 | 20 | if User.current.allowed_to?(:view_time_entries, @project) |
|
21 | 21 | xml.spent_hours @issue.spent_hours |
|
22 | 22 | end |
|
23 | 23 | |
|
24 | 24 | xml.custom_fields do |
|
25 | 25 | @issue.custom_field_values.each do |custom_value| |
|
26 | 26 | xml.custom_field custom_value.value, :id => custom_value.custom_field_id, :name => custom_value.custom_field.name |
|
27 | 27 | end |
|
28 | 28 | end unless @issue.custom_field_values.empty? |
|
29 | 29 | |
|
30 | 30 | xml.created_on @issue.created_on |
|
31 | 31 | xml.updated_on @issue.updated_on |
|
32 | 32 | |
|
33 | 33 | xml.changesets do |
|
34 | 34 | @issue.changesets.each do |changeset| |
|
35 | 35 | xml.changeset :revision => changeset.revision do |
|
36 | 36 | xml.user(:id => changeset.user_id, :name => changeset.user.name) unless changeset.user.nil? |
|
37 | 37 | xml.comments changeset.comments |
|
38 | 38 | xml.committed_on changeset.committed_on |
|
39 | 39 | end |
|
40 | 40 | end |
|
41 | 41 | end if User.current.allowed_to?(:view_changesets, @project) && @issue.changesets.any? |
|
42 | 42 | |
|
43 | 43 | xml.journals do |
|
44 | 44 | @issue.journals.each do |journal| |
|
45 | 45 | xml.journal :id => journal.id do |
|
46 | 46 | xml.user(:id => journal.user_id, :name => journal.user.name) unless journal.user.nil? |
|
47 | 47 | xml.notes journal.notes |
|
48 | 48 | xml.details do |
|
49 | 49 | journal.details.each do |detail| |
|
50 | 50 | xml.detail :property => detail.property, :name => detail.prop_key, :old => detail.old_value, :new => detail.value |
|
51 | 51 | end |
|
52 | 52 | end |
|
53 | 53 | end |
|
54 | 54 | end |
|
55 | 55 | end unless @issue.journals.empty? |
|
56 | 56 | end |
General Comments 0
You need to be logged in to leave comments.
Login now