Hi Team,
I have created a connection between JSM service desk project and Jira software projects where while creating the ticket user selects a project name and ticket is cloned in that particular project. Even though the field is populated script throws error. Please find the below code:-
if (firstSync && replica.project.key == “BFGS”) {
def projectNameIdentifier = replica.customFields.“Project”.value.toString()
if (projectNameIdentifier) {
def project = nodeHelper.getProjectByName(projectNameIdentifier)
if (project) {
issue.projectKey = project.key
}
}
Also is there any way we can add delay to the triggers.