I have a Field in SFDC that pulls the Account Name on a Case and converts to plain text, I want to take this field and send it to a JIRA text field so that we don’t have to always update our customer lists / mapping.
Here is SFDC Outgoing
replica.customFields.“Client Impacted” = entity.Jira_Account__c
Here is JIRA Incoming
issue.customFields.“Client Impacted”.value = replica.customFields.“Client Impacted”.value
Jira remote replica shows this
“hubIssue”: {
“Client Impacted”: “Sales Ops Test Account”,
“voters”: ,
“fixVersions”: ,
“internalMap”: {
“Client Impacted”: “Sales Ops Test Account”
But I get the following error in SFDC Exalate connection
Unexpected error occurred. The customfield Client Impacted was assigned to value=EverAfter Test Account - Customer class=java.lang.String, but it should have been set to a custom field object
Apologies, I am not getting time to test this out, but I think this should work indeed:
issue.customFields.“Jira Field Name ”?.value = nodeHelper.createOption(issue, Jira Field Name , replica.customFields.“Jira_Account__c”?.value?.value)
The only part I am not sure about is the double dereference i.e. the .value.value in the end. I believe it should only be one .value.
sounds good I have tested with value value and single value and get the same error we can delete these responses on this ticket though and just communicate on the next to not confuse people in future