Feature #5338

Descendants (subtasks) should be available via REST API

Added by Matthew Schinckel over 7 years ago. Updated almost 7 years ago.

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

0%

Category:REST API
Target version:1.1.0
Resolution:Fixed

Description

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

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

Associated revisions

Revision 4465
Added by Jean-Philippe Lang almost 7 years ago

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

History

#1 Updated by Matthew Schinckel over 7 years ago

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

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

#2 Updated by Jean-Philippe Lang over 7 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 almost 7 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 almost 7 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