Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Sync custom version picker field -Jira Cloud

 
1
0
-1

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,

  1. Javier Pozuelo

    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

CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    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

      CommentAdd your comment...