function getTask(String label) in RootAction