# JIRA Single Picklist Custom field to a Salesforce Case Text Field

**URL:** <https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021>\
**Category:** General Questions\
**Tags:** jira, salesforce, customfields, picklist\
**Created:** [December 6, 2024, 9:28pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021 "2024-12-06T21:28:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/javier/32/338_2.png) [@Javier](https://community.exalate.com/u/Javier)\
**Post date:** [December 6, 2024, 9:28pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021/1 "2024-12-06T21:28:57Z")

</div>

I’m trying to populate the value from a Jira picklist into a Salesforce text field. While I’m able to successfully send the Jira picklist value to the Salesforce replica, I’m encountering issues when attempting to populate the Salesforce custom field with the desired value.

**Incoming Script SalesForce:**  
` entity.Jira_Roadmap_Qtr_c = replica.customFields."Roadmap_Quarter"`

**Outgoing Script Jira**  
`replica.customFields."Jira_Roadmap_Qtr__c" = issue.customFields."Roadmap Quarter"`

The **Jira replica** shows the details are there but it does not populate the value

```
 "customFields": {
      "Jira_Roadmap_Qtr_c": {
         "id": 1,
         "name": "Roadmap Quarter",
         "uid": "1",
         "type": "OPTION",
         "value": {
            "id": "10",
            "value": "Q1 2024"
          }
       }
    },

```

---

<div class="post-metadata">

**Author:** ![Javier](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/javier/32/338_2.png) [@Javier](https://community.exalate.com/u/Javier)\
**Post date:** [December 6, 2024, 9:41pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021/2 "2024-12-06T21:41:48Z")

</div>

Hello!

The issue you’re encountering with populating the Salesforce custom field is due to the incorrect assignment of the replica object in your incoming script.

In your current script, you’re assigning `replica.customFields."Roadmap_Quarter"` to `entity.Jira_Roadmap_Qtr_c`, but it should be `replica.customFields."Jira_Roadmap_Qtr __c"` instead. This is because `"Jira_Roadmap_Qtr__ c"` is the correct replica field name you used in the outgoing script for the “Roadmap Quarter” custom field in Jira.

To resolve this, the correct script in your **Salesforce Incoming** sync should be:

```auto
entity.Jira_Roadmap_Qtr_c = replica.customFields."Jira_Roadmap_Qtr__c".value.value

```

This will ensure the value from the Jira picklist is correctly mapped to the Salesforce text field.

Let me know if this solution works for you 🙂

---

<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 6, 2024, 9:51pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021/3 "2024-12-06T21:51:34Z")

</div>

Thank you Javier only change that was needed was as is

entity.Jira\_Roadmap\_Qtr\_\_c = replica.customFields.“Jira\_Roadmap\_Qtr\_\_c”.value.value

no value is needed after the Entity field

---

<div class="post-metadata">

**Author:** ![Javier](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/javier/32/338_2.png) [@Javier](https://community.exalate.com/u/Javier)\
**Post date:** [December 6, 2024, 10:29pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021/4 "2024-12-06T22:29:20Z")

</div>

I’m glad the script worked for you 😁  
Also, thanks for fixing the script! I have updated the answer

---

<div class="post-metadata">

**Author:** ![Javier](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/javier/32/338_2.png) [@Javier](https://community.exalate.com/u/Javier)\
**Post date:** [December 7, 2024, 10:30pm UTC](https://community.exalate.com/t/jira-single-picklist-custom-field-to-a-salesforce-case-text-field/6021/5 "2024-12-07T22:30:13Z")

</div>

Closed on December 7, 2024, 10:30pm UTC

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