Collapses all summary tasks in the TaskList, hiding all their child tasks.
TaskList.collapseTasks()
This method collapses all summary tasks in the TaskList. As a result, the schedule does not display any of the child tasks in the TaskList.
See also collapse method expand methodexpandTasks method