EpicLinkToAzure

Incoming Sync Azure
if(firstSync){
   // Set type name from source entity, if not found set a default
   workItem.projectKey  =  "Mathieu Project"
   
   if(replica.issueType.name == "Epic"){
workItem.typeName = "Epic"
       
   }
   
      if(replica.issueType.name == "Story"){
workItem.typeName = "User Story"
       
   }
   
   
}



workItem.summary      = replica.summary
workItem.description  = replica.description
workItem.attachments  = attachmentHelper.mergeAttachments(workItem, replica)
workItem.comments     = commentHelper.mergeComments(workItem, replica)
workItem.labels       = replica.labels
workItem.priority     = replica.priority



if (replica.customKeys."Epic Link".id){
    def localParent = syncHelper.getLocalIssueKeyFromRemoteId(replica.customKeys."Epic Link".id.toLong())
    if(localParent){
        workItem.parentId = localParent.id
    }
}