Get subtasks from a task

Returns a compact representation of all subtasks of a task.