JSM incoming
if(firstSync){ issue.projectKey = "JSM" // Set type name from source issue, if not found set a default issue.typeName = nodeHelper.getIssueType(replica.type?.name, issue.projectKey)?.name ?: "Task" } issue.summary = replica.summary issue.description = replica.description issue.labels = replica.labels replica.addedAttachments.each { a -> def comment = commentHelper.addComment("!${a.filename}!", [])[0] comment.internal = true comment.restrictSync = true issue.comments += comment } issue.attachments = attachmentHelper.mergeAttachments(issue, replica) replica.addedComments.each { it.executor = nodeHelper.getUserByEmail(it.author?.email) } replica.changedComments.each { it.executor = nodeHelper.getUserByEmail(it.updateAuthor?.email) } issue.comments = commentHelper.mergeComments(issue, replica, {it.internal = true; it})