1
0
-1
1 answer
- 10-1
Hi Harold
Please verify
issue.customFields."Defect ID".value = replica.Name
that replica.Name contains a value at all. The Name is in no API reference documentation.
Unless it is a customfield called Name, it would not contain any information.
Thank you.
Kind regards,
Mathieu LepoutreAdd your comment...
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.