NestedIntervalUtils - getAncestors(GlideRecord node, Boolean inclusive)

Returns all the ancestors of the given node.

Table 1. Parameters
Name Type Description
node GlideRecord Node whose ancestors are to be retrieved
inclusive Boolean Indicator for whether the passed node should be included in the returned records
Table 2. Returns
Type Description
GlideRecord Ancestors of the specified node; ordered by level ascending the tree