Urgent - List of wait tasks

Hi,
I need to get a list of all the wait tasks (User tasks and events), that are the reasons for the process instance being halted.
How do I achieve this?