View Single Post
Have you tried project.flattenedTasks ?

(The root task of project is a rather strange and special case, it is really a reference to the project itself – A project is just a decorated task)