The below query can be used to get the PA Tasks in a hierarchical order which belongs to a Project/Template which is defined in the Project Accounting Module.
Thanks to Sajeer Omar.
Replace the below hardcoded values before executing :
Project/Template ID
selectx.project_id ,x.task_id ,(lpad(' ',(wbs_level-1)*5,' ')||x.task_number) task_number ,x.parent_task_id ,x.top_task_id ,x.wbs_level ,sys_connect_by_path(x.task_id,'/')frompa_tasks xwherex.project_id = 1-- Project/Template IDconnect by priorx.task_id = x.parent_task_idstart withx.parent_task_idis nullorder by sys_connect_by_path(x.task_id,'/');
Feel free to point out if anything is missing/wrong in this blog.
No comments:
Post a Comment