annotate .svn/pristine/be/be5eea4d65ddd58278f59654aa0a6ad304fac616.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 api.array :issues, api_meta(:total_count => @issue_count, :offset => @offset, :limit => @limit) do
Chris@909 2 @issues.each do |issue|
Chris@909 3 api.issue do
Chris@909 4 api.id issue.id
Chris@909 5 api.project(:id => issue.project_id, :name => issue.project.name) unless issue.project.nil?
Chris@909 6 api.tracker(:id => issue.tracker_id, :name => issue.tracker.name) unless issue.tracker.nil?
Chris@909 7 api.status(:id => issue.status_id, :name => issue.status.name) unless issue.status.nil?
Chris@909 8 api.priority(:id => issue.priority_id, :name => issue.priority.name) unless issue.priority.nil?
Chris@909 9 api.author(:id => issue.author_id, :name => issue.author.name) unless issue.author.nil?
Chris@909 10 api.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil?
Chris@909 11 api.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil?
Chris@909 12 api.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil?
Chris@909 13 api.parent(:id => issue.parent_id) unless issue.parent.nil?
Chris@909 14
Chris@909 15 api.subject issue.subject
Chris@909 16 api.description issue.description
Chris@909 17 api.start_date issue.start_date
Chris@909 18 api.due_date issue.due_date
Chris@909 19 api.done_ratio issue.done_ratio
Chris@909 20 api.estimated_hours issue.estimated_hours
Chris@909 21
Chris@909 22 render_api_custom_values issue.custom_field_values, api
Chris@909 23
Chris@909 24 api.created_on issue.created_on
Chris@909 25 api.updated_on issue.updated_on
Chris@909 26
Chris@909 27 api.array :relations do
Chris@909 28 issue.relations.each do |relation|
Chris@909 29 api.relation(:id => relation.id, :issue_id => relation.issue_from_id, :issue_to_id => relation.issue_to_id, :relation_type => relation.relation_type, :delay => relation.delay)
Chris@909 30 end
Chris@909 31 end if include_in_api_response?('relations')
Chris@909 32 end
Chris@909 33 end
Chris@909 34 end