add method to return all tasks for a given list