Sync custom version picker field -Jira Cloud

Originally asked by Eugene A on 07 June 2023 (original question)


Hi all,

Does anyone know how can I achieve the proper synchronization of Version Picker (multiple version) type custom field?

I was able to successfully sync the system fixVersion field but Iā€™m having difficulties when it comes to synchronizing the custom field type Version Picker (multiple version).

Please let me know.

Thanks,


Comments:

Javier Pozuelo commented on 21 September 2023

Hello,

Are you trying to achieve a synchronization between two Version Pickers (Multiple version)?

In this case, for it to work correctly, you need the versions in each instance to be created in the exact same order.

Regards,

Javier Pozuelo

Answer by Mathieu Lepoutre on 16 October 2023

Hello

Outgoing Sync:

replica.customFields."Multiple Versions" = issue.customFields."Multiple Versions"
  
  
  
Incoming Sync:
def remoteVersions = replica.customFields."Multiple Versions"?.value  
issue.customFields."Multiple Versions".value = remoteVersions?.collect { v -> nodeHelper.createVersion(issue, v.name, v.description) } ?: []


Please remember to replace ā€œMultiple Versionsā€ with the actual name of your custom field.

Thank you.

Kind regards,
Mathieu Lepoutre


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.