Scoped GlideTableHierarchy - getAllExtensions()

Returns an array of strings containing all tables that extend the current table and includes the current table.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
Array An array of strings containing the tables in the hierarchy that includes the current table.
var table = new GlideTableHierarchy("task"); 
gs.info(table.getAllExtensions());

Output: Line breaks added for clarity.

task,sc_task,problem_task,change_phase,sc_req_item,kb_submission,
release_phase,problem,ticket,sm_task,hr_task,change_task,change_request,
change_request_imac,incident,release_task,vtb_task,sm_order,hr_case,
sysapproval_group,sc_request