Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Hello, we have the script below in our Jira Incoming Sync from Salesforce. We’re attempting to pass the Name to the Defect ID from SF to Jira. We input the lines (9 and 10) to identify if the Issue has the custom fields, if so to input the Name within Defect ID in the Issue. However, though the values are within the Remote Replica, they are excluded in the Local Replica. Are we missing something?
The record ID in the example is a7K5d0000027aB7EAI. The issue is syncing fine with all other values. The Defect ID is not reflecting the replica.Name as it should be in the script we provided.
Jira Incoming:
if (issue.customFields.containsKey("Defect ID")) {
issue.customFields."Defect ID".value = replica.Name
You'll see in the Remote Replica Script the Name is: "Name": "YYYY-XXXXXX". So, we're expecting the Issue CCCC-VVVV to show FFFF-RRRRR in Defect ID. However, it is blank in Jira.