# Help adding script to a Visual Mode connection

**URL:** <https://community.exalate.com/t/help-adding-script-to-a-visual-mode-connection/4807>\
**Category:** General Questions\
**Tags:** cloud-jira, jira-cloud, visual-mode, migrated\_question\
**Created:** [November 4, 2024, 7:25am UTC](https://community.exalate.com/t/help-adding-script-to-a-visual-mode-connection/4807 "2024-11-04T07:25:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 7:25am UTC](https://community.exalate.com/t/help-adding-script-to-a-visual-mode-connection/4807/1 "2024-11-04T07:25:09Z")

</div>

_Originally asked by Daniel Carvajal on 12 August 2021 [(original question)](https://oldcommunity.exalate.com/questions/30050934)_

* * *

_ **Question by B Wright:** _  
I’m seeking to add a Checkbox custom field to an existing Visual Mode connection rule:  
Guidance here ([https://docs.idalko.com/exalate/display/ED/Script+rules+examples#Scriptrulesexamples-Multi-selectlist/Checkbox](https://docs.idalko.com/exalate/display/ED/Script+rules+examples#Scriptrulesexamples-Multi-selectlist/Checkbox)) suggests using the following format:

```auto
your_instance_shortname.issue.customFields.“select list multiple choice”.value = remote_instance_shortname.issue.customFields.“remote multi-select list custom field”.value?.value

```

Can you please confirm what precise information should be added for remote\_instance\_shortname and your\_instance\_shortname?  
I tried the following - it allows the issue to sync but doesn’t result in the Product custom field being synced: ITSM.issue.customFields.“select list multiple choice”.value = Data.issue.customFields.“remote multi-select list custom field”.value?.value

* * *

#### Comments:

> **Ariel Aguilar commented on 12 August 2021**
>
> > Hi there!
> 
> If you create a connection with local name A and remote instance name B, the connection name would look like this: A\_to\_B. Then, if you want to replace the mentioned “remote\_instance\_shortname and your\_instance\_shortname”, you should do something like this:
> 
> ```auto
> A.issue.customFields."select list multiple choice".value = B.issue.customFields."remote multi-select list custom field".value?.value
> 
> ```
> 
> Let me know if you require more help.
> 
> Kind regards,
> 
> Ariel

> **Ben commented on 16 August 2021**
>
> > Hi Ariel,
> 
> Thanks. Unfortunately, I get a sync error using the above script with the local and remote instance names.

> **Ariel Aguilar commented on 16 August 2021**
>
> > Hi Ben,
> 
> Could you add the error stack trace as reference. It is helpful to specify the type of field used for better understanding.
> 
> Please check the quotes on the script, they should be (“”) and are you replacing the name of the customfield, correct? For example, replace “select list multiple choice” by its actual name.
> 
> Kind regards,
> 
> Ariel

---

<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:** [February 6, 2025, 4:03pm UTC](https://community.exalate.com/t/help-adding-script-to-a-visual-mode-connection/4807/2 "2025-02-06T16:03:50Z")

</div>


