I have the fields mapped but am stuck at how to Define the mapping between these fields so it is bi directional. I feel like I need a DEF script and then does it map to the Team Name or the OPTION ID in JIRA ? Screenshots included of the field. TEAM is a default field in JIRA and Team is a custom pick list field in SFDC
SFDC Outgoing
if(entity.entityType == “Case”) {
replica.key = entity.Id
replica.summary = entity.Jira_Title__c
replica.description = entity.Jira_Summary__c
replica.comments = entity.comments
replica.attachments = entity.attachments
replica.Jira_Account__c = entity.Jira_Account__c
replica.Jira_Pod__c = entity.Jira_Pod__c
}
SFDC Incoming
if(firstSync){
entity.entityType = “Case”
}
if(entity.entityType == “Case”){
entity.comments = commentHelper.mergeComments(entity, replica)
entity.attachments = attachmentHelper.mergeAttachments(entity, replica)
entity.Jira_Eng_Priority__c = replica.priority?.name
entity.Jira_ID__c = replica.key
entity.Jira_Status__c =replica.status?.name
entity.Jira_Pod__c = replica.Jira_Pod__c
}
JIRA Outgoing
replica.key = issue.key
replica.comments = issue.comments
replica.attachments = issue.attachments
replica.priority = issue.priority
replica.status = issue.status
replica.“Jira_Pod__C” = issue.Team
JIRA Incoming
if (firstSync) {
issue.projectKey = “ST”
// Set the same issue type as the source issue. If not found, set a default.
issue.typeName = nodeHelper.getIssueType(replica.type?.name, issue.projectKey)?.name ?: “Content Issue”
}
issue.summary = replica.summary
issue.description = nodeHelper.toMarkDownFromHtml(replica.description)
issue.comments = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))
issue.attachments = attachmentHelper.mergeAttachments(issue, replica)
issue.customFields.“Client Impacted”.value = nodeHelper.createOption(issue, “Client Impacted”, replica.“Jira_Account__c”)
issue.labels += nodeHelper.getLabel(“SFDCTechSupport”)
issue.Team = replica.“Jira_Pod__C”