]> source.dussan.org Git - redmine.git/commitdiff
Adds parent issue id in issue REST API (#5304).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 13 Apr 2010 17:51:06 +0000 (17:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 13 Apr 2010 17:51:06 +0000 (17:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3671 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/index.xml.builder
app/views/issues/show.xml.builder

index ccc3e52c115b47e6e1f04594cd6a9dc0067fd5a5..ba5697c9bc1b38fcc2d171c27342a07973680f69 100644 (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
index 84a1d95aa44c55894fbfe70064a9eb963e771a72..1237b8cdeddcf81982379c2e25a834fb83234983 100644 (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