zendesk -> Jira cloud: Multi Boxes

Jira cloud/ zendesk incoming sync
def checkboxCollection = replica.customFields."VOD / LIVE".
                                value?.
                                collect{
                                    it.value
                                }

def valueMapping = [
    'apple': 'pear',
    'boat': 'car'
]

def upperCase = checkboxCollection.collect { item ->
    def mappedItem = item.toUpperCase()
    valueMapping.containsKey(mappedItem) ? valueMapping[mappedItem] : mappedItem
}

issue.customFields."VOD / LIVE".value = upperCase
zendesk outgoing sync
replica.customFields."VOD / LIVE" = issue.customFields."VOD / LIVE"