Confluence has been updated to version 6.15.9

JIRA SERVER

This article shows how to synchronize data of an insight custom field locally


Source side

Outgoing sync

// SETTINGS
final def insightCustomFieldName = "Assets"
 // END SETTINGS

replica.customKeys.
"My Custom Field values as Strings" = issue.customFields[insightCustomFieldName]?.value?.collect{
 v ->
  def cfm = com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager()
 def cf = cfm.getCustomFieldObject(issue.customFields[insightCustomFieldName].id)
 def cft = cf.getCustomFieldType()
 def vStr = cft.getStringFromSingularObject(v)
 vStr
}


Destination side

Incoming sync

// SETTINGS
final def insightCustomFieldName = "Assets"
 // END SETTINGS

issue.customFields[insightCustomFieldName].value = replica.customKeys.
"My Custom Field values as Strings".collect {
 String vStr ->
  def cfm = com.atlassian.jira.component.ComponentAccessor.getCustomFieldManager()
 def cf = cfm.getCustomFieldObject(issue.customFields[insightCustomFieldName].id)
 def cft = cf.getCustomFieldType()
 def v = cft.getSingularObjectFromString(vStr)
 v
}



See Also