Feature #5338

Descendants (subtasks) should be available via REST API

Added by Matthew Schinckel almost 12 years ago. Updated about 11 years ago.

Status:ClosedStart date:2010-04-16
Priority:NormalDue date:
Assignee:-% Done:


Category:REST API
Target version:1.1.0


app/views/show.xml.builder, line13:

  xml.descendants do
    @issue.descendants.each do |issue|
      xml.descendant(:id => issue.id)
  end unless @issue.leaf?

Associated revisions

Revision 4465
Added by Jean-Philippe Lang about 11 years ago

Adds subtasks to GET /issues/:id API (#5338).


#1 Updated by Matthew Schinckel almost 12 years ago

Similarly, in index.xml.builder, line 15:

      xml.descendants do
        issue.descendants.each do |descendant|
          xml.descendant(:id => descendant.id)
      end unless issue.leaf?

#2 Updated by Jean-Philippe Lang over 11 years ago

This would show a flat list of all descendants (not only children). How do you get parent/child relationships from that?

#3 Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from New to Closed
  • Target version set to 1.1.0
  • Resolution set to Fixed

Added in r4465.

#4 Updated by Alex Last about 11 years ago

I don't see this information in the response when I send request to REST API:
GET /issues/441.xml
(I'm using latest Trunk Redmine, just did "svn up")

is it not implemented for xml format?

Also available in: Atom PDF