Adds parent issue id in issue REST API (#5304).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3671 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2010-04-13 17:51:06 +00:00
parent 6a6f403978
commit 0e1595ad56
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ xml.issues :type => 'array' do
xml.assigned_to(:id => issue.assigned_to_id, :name => issue.assigned_to.name) unless issue.assigned_to.nil?
xml.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil?
xml.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil?
xml.parent(:id => issue.parent_id) unless issue.parent.nil?
xml.subject issue.subject
xml.description issue.description

View File

@ -9,6 +9,7 @@ xml.issue do
xml.assigned_to(:id => @issue.assigned_to_id, :name => @issue.assigned_to.name) unless @issue.assigned_to.nil?
xml.category(:id => @issue.category_id, :name => @issue.category.name) unless @issue.category.nil?
xml.fixed_version(:id => @issue.fixed_version_id, :name => @issue.fixed_version.name) unless @issue.fixed_version.nil?
xml.parent(:id => issue.parent_id) unless @issue.parent.nil?
xml.subject @issue.subject
xml.description @issue.description