How to Sync a Scripted Custom Field with a Text Custom Field on Jira On-premise

    This article shows how to synchronize data from a scripted custom field on one side into a text custom field on the other side.

    Source side

    Add the code below to the Data Filter to send scripted custom field value.

    replica.customFields."scripted custom field name" = issue.customFields?."scripted custom field name"

    Destination side

    Add the code below to the Create/Change Processor to get the value of the scripted custom field as a text.

    issue.customFields."text custom field name".value = replica.customFields?."scripted custom field name"?.value?.getAsString()