Project

General

Profile

Actions

Feature #5338

closed

Descendants (subtasks) should be available via REST API

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

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
Start date:
2010-04-16
Due date:
% Done:

0%

Estimated time:
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?
Actions #1

Updated by Matthew Schinckel over 14 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?

Actions #2

Updated by Jean-Philippe Lang over 14 years ago

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

Actions #3

Updated by Jean-Philippe Lang almost 14 years ago

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

Added in r4465.

Actions #4

Updated by Alex Last almost 14 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?

Actions

Also available in: Atom PDF