Skip to content

Nested repeat in json renderer #252

Description

@tianhuil

Hi @ctate:

I would like to use nested repeats for JSON-renderer. It works well for the single-level repeat but not for nested ones. I tried using patterns like this:

  • { repeat: { statePath: { $template: "using $index" } } }
  • { repeat: { statePath: { $item: "..." } } }

However, the inner statePath just expects a string:

Image

Is there a way we could get one of the above patterns?

Here are a few use cases:

  1. Multiple Company → People: one card per company, each containing a table of that company's employees.
  2. Multiple Order → Line items: one row per order in an outer table, with an expandable inner table of the products included in each order.
  3. Multiple Project → Tasks: one card per project, each containing a checklist of its open tasks.

Happy to contribute if you point me to a preferred implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions