hierarchy.descendants
Returns all elements that are descendants of a specific parent within a hierarchy.
js
hierarchy.descendants(dimension, hierarchy, parent)
hierarchy.descendants(dimension, hierarchy, parent)
Parameters
dimension
- The dimension within which to check a hierarchy exists.hierarchy
- The identifier of the hierarchy.parent
- The name of the parent element of which to return the descendants of.
Example
js
let elements = JSON.parse(hierarchy.descendants("Time", "Days Since Release", "Days Since Release"))
let elements = JSON.parse(hierarchy.descendants("Time", "Days Since Release", "Days Since Release"))