# Salesforce Case Text Custom Field to JIRA Text Custom Field

**URL:** <https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031>\
**Category:** General Questions\
**Created:** [December 10, 2024, 6:11pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031 "2024-12-10T18:11:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob\_Kalaj](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jacob_kalaj/32/411_2.png) [@Jacob\_Kalaj](https://community.exalate.com/u/Jacob_Kalaj)\
**Post date:** [December 10, 2024, 6:11pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/1 "2024-12-10T18:11:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mathieu](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/mathieu/32/370_2.png) [@mathieu](https://community.exalate.com/u/mathieu)\
**Post date:** [December 10, 2024, 6:23pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/2 "2024-12-10T18:23:38Z")

</div>

Hello @Jacob_Kalaj

Can you please share the part of the “remote replica” that has the “Client Impacted” part?

Thank you in advance.  
Mathieu

---

<div class="post-metadata">

**Author:** ![Jacob\_Kalaj](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jacob_kalaj/32/411_2.png) [@Jacob\_Kalaj](https://community.exalate.com/u/Jacob_Kalaj)\
**Post date:** [December 10, 2024, 6:25pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/4 "2024-12-10T18:25:00Z")

</div>

Hey Mathieu, hope all is good long time no talk!

The Remote replica I included above is from JIRA when I click Show Remote Replica

its gives that Hub Issue then you can See Client Impacted so the JIRA side shows no Error only the Salesforce side gives the error

---

<div class="post-metadata">

**Author:** ![mathieu](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/mathieu/32/370_2.png) [@mathieu](https://community.exalate.com/u/mathieu)\
**Post date:** [December 10, 2024, 6:29pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/5 "2024-12-10T18:29:42Z")

</div>

Hey Jacob,  
Long time no talk indeed. All is well, hope you are great too :).  
Lets get your issue sorted!

So the Error is on the SF side?  
The use-case is sending the information from SF to Jira?

Can you try this please?

SFDC Outgoing  
replica.Jira\_Account\_\_c = entity.Jira\_Account\_\_c

JIRA Incoming  
issue.customFields.“Client Impacted”.value = replica.Jira\_Account\_\_c

Please let me know how it goes.  
Thanks

---

<div class="post-metadata">

**Author:** ![Jacob\_Kalaj](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jacob_kalaj/32/411_2.png) [@Jacob\_Kalaj](https://community.exalate.com/u/Jacob_Kalaj)\
**Post date:** [December 10, 2024, 7:13pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/6 "2024-12-10T19:13:32Z")

</div>

So far looking great @mathieu ! appreciate you as always and thank you for the quick reply.

---

<div class="post-metadata">

**Author:** ![mathieu](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/mathieu/32/370_2.png) [@mathieu](https://community.exalate.com/u/mathieu)\
**Post date:** [December 10, 2024, 7:33pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/7 "2024-12-10T19:33:52Z")

</div>

Awesome! Glad everything’s is working. I appreciate you too and always happy to help. Have a fantastic day, Mat

---

<div class="post-metadata">

**Author:** ![Majid](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/majid/32/343_2.png) [@Majid](https://community.exalate.com/u/Majid)\
**Post date:** [December 11, 2024, 4:52am UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/9 "2024-12-11T04:52:59Z")

</div>

Hi Jacob,

Assuming that you are on Jira Cloud, the createOption() helper method should do the trick here. Can you give this a shot please:  
[https://docs.exalate.com/docs/createoption-49153352](https://docs.exalate.com/docs/createoption-49153352)

Thanks  
Majid

---

<div class="post-metadata">

**Author:** ![Jacob\_Kalaj](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jacob_kalaj/32/411_2.png) [@Jacob\_Kalaj](https://community.exalate.com/u/Jacob_Kalaj)\
**Post date:** [December 11, 2024, 3:20pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/11 "2024-12-11T15:20:16Z")

</div>

I wonder if I should start a new topic, for this piece @Majid @mathieu  
might help someone in the future better so the two statements are meshed

---

<div class="post-metadata">

**Author:** ![Majid](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/majid/32/343_2.png) [@Majid](https://community.exalate.com/u/Majid)\
**Post date:** [December 11, 2024, 3:29pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/12 "2024-12-11T15:29:22Z")

</div>

> [@Jacob\_Kalaj](#):
>
> issue.customFields.“ **Jira Field Name** ”?.value = nodeHelper.createOption(issue, **Jira Field Name** , replica.customFields.“Jira\_Account\_\_c”?.value?.value)

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.

Can you please give it a shot?

Thanks  
Majid

p.s.: yes, lets start a new topic please.

---

<div class="post-metadata">

**Author:** ![Jacob\_Kalaj](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/jacob_kalaj/32/411_2.png) [@Jacob\_Kalaj](https://community.exalate.com/u/Jacob_Kalaj)\
**Post date:** [December 11, 2024, 3:38pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/13 "2024-12-11T15:38:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Majid](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/majid/32/343_2.png) [@Majid](https://community.exalate.com/u/Majid)\
**Post date:** [December 11, 2024, 4:41pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/14 "2024-12-11T16:41:17Z")

</div>

Continued here:

> [@I want to get my Saleforce Accounts on a Case into a Picklist Field in JIRA](https://community.exalate.com/t/i-want-to-get-my-saleforce-accounts-on-a-case-into-a-picklist-field-in-jira/6039):
>
> I have two options Account Name on a Case, default SFDC field A Custom Text Field that pulls the Account Name on a Case My Goal is to take that Account Name and Send it to JIRA in a Picklist so that my Product and Engineering Team can report on Clients Impacted My Salesforce Outgoing script is replica.Jira\_Account\_\_c = entity.Jira\_Account\_\_c My Current JIRA Incoming Script is issue.customFields.“Client Impacted Test”?.value = nodeHelper.createOption(issue,“Client Impacted Test”, replica.c…

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/system/32/3_2.png) [@system](https://community.exalate.com/u/system)\
**Post date:** [December 12, 2024, 4:42pm UTC](https://community.exalate.com/t/salesforce-case-text-custom-field-to-jira-text-custom-field/6031/15 "2024-12-12T16:42:18Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
