summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-13 17:51:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-04-13 17:51:06 +0000
commit0e1595ad561ab1d534f0d97f745ea555666abf21 (patch)
treeab0be57feee23e2f1941640f0ca3a567bce3b37e /app/views/issues
parent6a6f4039788507a09a1bfd61871ff59601fc0915 (diff)
downloadredmine-0e1595ad561ab1d534f0d97f745ea555666abf21.tar.gz
redmine-0e1595ad561ab1d534f0d97f745ea555666abf21.zip
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
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/index.xml.builder1
-rw-r--r--app/views/issues/show.xml.builder1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/issues/index.xml.builder b/app/views/issues/index.xml.builder
index ccc3e52c1..ba5697c9b 100644
--- a/app/views/issues/index.xml.builder
+++ b/app/views/issues/index.xml.builder
@@ -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
diff --git a/app/views/issues/show.xml.builder b/app/views/issues/show.xml.builder
index 84a1d95aa..1237b8cde 100644
--- a/app/views/issues/show.xml.builder
+++ b/app/views/issues/show.xml.builder
@@ -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