Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 20315

Re : Report Open Tasks with Closed Parents

$
0
0
Hi,

You could use the query below to generate the report, to get the list of pending tasks associated to completed requests, problems and changes.
Login to ServiceDesk Plus, go to Reports > New Query , copy the query to query editor and run the report.

SELECT  taskdet.MODULE "Module" , taskdet.TASKID "Task ID",taskdet.TITLE "Title",taskcreatedby.FIRST_NAME "Created By",taskowner.FIRST_NAME "Owner",taskstatus.STATUSNAME "Task Status",wotask.WORKORDERID "RequestID",wotask.TITLE "Request Title",taskprob.PROBLEMID "Problem ID",taskprob.TITLE "Problem Title",taskchange.CHANGEID "Change ID",taskchange.TITLE "Change Title" FROM TaskDetails taskdet LEFT JOIN AaaUser taskcreatedby ON taskdet.CREATEDBY=taskcreatedby.USER_ID LEFT JOIN SDUser taskownersdu ON taskdet.OWNERID=taskownersdu.USERID LEFT JOIN AaaUser taskowner ON taskownersdu.USERID=taskowner.USER_ID LEFT JOIN StatusDefinition taskstatus ON taskdet.STATUSID=taskstatus.STATUSID LEFT JOIN WorkOrderToTaskDetails wototaskdet ON taskdet.TASKID=wototaskdet.TASKID LEFT JOIN WorkOrder wotask ON wototaskdet.WORKORDERID=wotask.WORKORDERID LEFT JOIN ProblemToTaskDetails probtotaskdet ON taskdet.TASKID=probtotaskdet.TASKID LEFT JOIN Problem taskprob ON probtotaskdet.PROBLEMID=taskprob.PROBLEMID LEFT JOIN ChangeToTaskDetails changetotaskdet ON taskdet.TASKID=changetotaskdet.TASKID LEFT JOIN ChangeDetails taskchange ON changetotaskdet.CHANGEID=taskchange.CHANGEID  LEFT JOIN Workorder wo ON wototaskdet.workorderid=wo.workorderid
LEFT JOIN Problem prob ON probtotaskdet.problemid=prob.problemid
LEFT JOIN ChangeDetails chdt ON changetotaskdet.changeid=chdt.changeid
LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID
LEFT JOIN StatusDefinition std ON wos.STATUSID=std.STATUSID
LEFT JOIN StatusDefinition statdef ON prob.STATUSID=statdef.STATUSID 
LEFT JOIN StageDefinition stagedef ON chdt.STAGEID=stagedef.STAGEID
WHERE  ((taskstatus.STATUSNAME = 'Onhold') OR (taskstatus.STATUSNAME = 'Open')) AND ((std.ISPENDING=0) OR (statdef.ISPENDING=0) OR (stagedef.NAME='COMPLETED' )) ORDER BY 1

Regards,
Stephen

Viewing all articles
Browse latest Browse all 20315

Trending Articles