# How would I sync a value from a radio button from Jira cloud?

**URL:** <https://community.exalate.com/t/how-would-i-sync-a-value-from-a-radio-button-from-jira-cloud/5076>\
**Category:** General Questions\
**Tags:** cloud-jira, cloud-azuredevops, customfields, migrated\_question\
**Created:** [November 4, 2024, 7:41am UTC](https://community.exalate.com/t/how-would-i-sync-a-value-from-a-radio-button-from-jira-cloud/5076 "2024-11-04T07:41:55Z")\
**Posts on this page:** 3\
**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:41am UTC](https://community.exalate.com/t/how-would-i-sync-a-value-from-a-radio-button-from-jira-cloud/5076/1 "2024-11-04T07:41:55Z")

</div>

_Originally asked by Jónheiður Ísleifsdóttir on 24 February 2022 [(original question)](https://oldcommunity.exalate.com/questions/42833456)_

* * *

Hi all,

I am trying to sync a value from Radio button in Jira cloud to ADO

By running this script on Jira cloud outgoing

```auto
replica.customFields."10228" = issue.customFields."10228"

```

I get the following code in the local payload on Jira cloud side

```auto
      "10228": {
        "id": 10228,
        "name": "Issue type",
        "uid": "10228",
        "type": "OPTION",
        "value": {
          "id": "11135",
          "value": "Issue in production"
        }
      }

```

so it seems that the data is there.

What I am now struggling with, is how to get the option value data “Issue in production” into a custom field on the Azure devOps side.

I have tried:

```auto
workItem."Custom.Type" = replica.customFields."10228"

```

When I try this I get no error but no data

and with the one below I get an error

```auto
def typeOption = nodeHelper.getOption(workItem, 10228L, replica.customFields."10228")
workItem."Custom.Type" = typeOption

```

I have searched through the documentation but have not been able to find anything about radio button custom fields on the ADO side.

Any help would be highly appreciated 😄

* * *

---

<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:41am UTC](https://community.exalate.com/t/how-would-i-sync-a-value-from-a-radio-button-from-jira-cloud/5076/2 "2024-11-04T07:41:56Z")

</div>

_Answer by Jónheiður Ísleifsdóttir on 08 March 2022_

Hi Tomás,

The first option you suggest gives this error on destination sided: Cannot get property ‘value’ on null object

And the second option with the nodeHelper gives this: NodeHelper.getOption is not supported in Exalate for Azure. Please remove its usages from your scripts.

So it seems that using the nodeHelper in ADO is not possible. Does anyone know of an alternative solution to this?

Best, Jónheiður

* * *

---

<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:41am UTC](https://community.exalate.com/t/how-would-i-sync-a-value-from-a-radio-button-from-jira-cloud/5076/3 "2024-11-04T07:41:57Z")

</div>

_Answer by Tomás Martynowicz on 03 March 2022_

Hi Jonheiour,

I think the problem here is that `workItem.“Custom.Type”` should be set with the option value as a String.

Can you try with this code:

```auto
workItem."Custom.Type" = replica.customFields."10228".value

```

Maybe an alternative to your approach can be like this:

```auto
def typeOption = nodeHelper.getOption(workItem, 10228L, replica.customFields."10228")
workItem.customFields."Type".value = typeOption

```

* * *
