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
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”
}
I have the sync working from SFDC >>> JIRA and created a field DEF logic in Incoming Scripts using the Team ID #, however if I change the TEAM in JIRA it does not write back to SFDC here is the SFDC Incoming with updated script
@Javier or @mathieu
is there any help I can get here I can see everything in remote replica but still if I change the value in JIRA it does not change in SFDC
I think this is the line to blame: entity.Jira_Pod__c = stageMap[replica.Jira_Pod__c?.name]
So, if you look at the replica, it is fine and replica.Jira_Pod__c?.name is Air Pod.
But in the stageMap there is no Air Pod on the left side. You seem to have mapped ids instead of names there (maybe). If that is the case, I would do: entity.Jira_Pod__c = stageMap[replica.Jira_Pod__c?.id]
OR
change the stageMap to have names on the left side instead of ids (probably the best option).