Index: app/helpers/issues_helper.rb IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- app/helpers/issues_helper.rb (revision c831786e3ae16b023ef4ca72b0f804905818db7e) +++ app/helpers/issues_helper.rb (date 1565185512523) @@ -150,6 +150,17 @@ content_tag('table', s, :class => 'list issues odd-even') end + def render_children(issue, api) + @children = Issue.where(:parent_id => issue.id) + if @children != [] + array = Array.new + @children.each do |child| + array.push(child.id) + end + eval("api.#{"children_id"} array") + end + end + def issue_estimated_hours_details(issue) if issue.total_estimated_hours.present? if issue.total_estimated_hours == issue.estimated_hours Index: app/views/issues/index.api.rsb IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- app/views/issues/index.api.rsb (revision c831786e3ae16b023ef4ca72b0f804905818db7e) +++ app/views/issues/index.api.rsb (date 1565185512500) @@ -11,7 +11,7 @@ api.category(:id => issue.category_id, :name => issue.category.name) unless issue.category.nil? api.fixed_version(:id => issue.fixed_version_id, :name => issue.fixed_version.name) unless issue.fixed_version.nil? api.parent(:id => issue.parent_id) unless issue.parent.nil? - + render_children(issue, api) api.subject issue.subject api.description issue.description api.start_date issue.start_date