stages.getAllTasks().forEach(task => { if (task.getProperty("State") == "TODO") { const step = task.getEntities("containsStep@SYSTEM")[0]; const participant = step.getEntities("containsParticipant@SYSTEM")[0]; if (!!participant) { const users = participant.getEntities("containsUser@SYSTEM"); users.forEach(user => { log.warn(step.getProperty("Name") + ": " + user.getProperty("Fullname")); }); } } });