Fetch Tasks for a given Root process instance Id

How to get all the tasks for a given root process instance id using the Task Service API or any other service in Camunda i.e using camunda java libraries? The goal is to fetch tasks of the parent process + tasks belonging to all its childs @aravindhrs