Originally asked by Jónheiður Ísleifsdóttir on 24 February 2022 (original question)
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
replica.customFields."10228" = issue.customFields."10228"
I get the following code in the local payload on Jira cloud side
"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:
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
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