Originally asked by Cloud Chiu on 11 September 2020 (original question)
Below is the coding in incoming sync
if(firstSync){
issue.projectKey = "XXX"
// Set type name from source issue, if not found set a default
issue.typeName = nodeHelper.getIssueType(replica.typeName, (issue.projectKey ?: issue.project.key))?.name ?: "Task"
}
if(issue.typeName == "Epic"){
issue.customFields."Epic Name"?.value = replica.summary
}
I suppose for issue types syncing from replica next gen project do not exist in local classic project, the default issue type is “Task”. In the other sides, I confirm that the task issue type is set in the project’s issue type scheme.
May you tell what’s wrong with my code?