Task and activities in all sub process of a master process

How to get all tasks and activities of all sub processes which is part of one process