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
We want to sync some SalesForce system fields (i.e. CaseNumber) to a Jira custom field (i.e. "Case Number").
Following the documentation gives us the following entry in Jira Incoming:
issue.customFields."Case Number".value = replica.customFields."CaseNumber".value
With the following in Salesforce Outgoing:
replica.customFields."Case Number" = issue.customFields."CaseNumber"
This results in an error in SalesForce
No such property: issue for class: Script218
If we change SalesForce Outgoing to:
replica.customFields."Case Number" = entity.customFields."CaseNumber"
This results in an error at the Jira destination:
Cannot get property 'value' on null object
Finally, if I use:
replica.customFields."Case Number" = entity."CaseNumber"
We finally start to see the expected value (Case # 00001143), but it's an error in Salesforces outgoing:
Unexpected error occurred. The customfield `Case Number` was assigned to `value=00001143 class=java.lang.String`, but it should have been set to a custom field object Generate an exalate support.zip file and contact support.
Maybe you can try:
Salesforce Outgoing:
Jira incoming:
Let me know if this works for you.
Kind regards,
Ariel
Hi Ariel,
Unfortunately the above results in this error on the outgoing Salesforce side:
Error Detail Message:
Cannot set property 'CaseNumber' on null object
I also tried the following for good measure; same error.
Thank you,
Justin