Project projectTo = (Project) issue.getCustomFieldValue(cfProjetEscalade) String projetKeyTo = projectTo.key def defaultIssueType = issueTypeSchemeManager.getDefaultIssueType(projectTo) ApplicationUser defaultAssignee = null if (projectTo.getAssigneeType() == AssigneeTypes.PROJECT_LEAD || projectTo.getAssigneeType() == null) { defaultAssignee = projectTo.getProjectLead() }