Jira Cloud -> Jira OP: Cascading Fields

Outgoing Jira Cloud
replica.customFields."test_lsc" = issue.customFields."test_lsc"

Incoming Jira On Premise
def sourceRegion = replica.customFields."test_lsc"?.value?.parent?.value
def sourceCountry = replica.customFields."test_lsc"?.value?.child?.value

def region = nodeHelper.getOption(
  issue,
  "test_lsc",
  sourceRegion
)
def country = region.childOptions.find{it.value == sourceCountry}
if ( region != null && (sourceCountry == null || country != null)) {
  issue.customFields."test_lsc"?.value = nodeHelper.getCascadingSelect(
              region,
              country
  )
} else if (sourceRegion == null) {
  issue.customFields."test_lsc"?.value = null
}