Sync Versions Start Date & Release Date from Jira Cloud to Jira Server

Originally asked by Vinay on 17 September 2021 (original question)


Source : Jira Cloud

Destination : Jira Server

We need to sync Versions Start date and release date along with

issue.fixVersions = replica
.fixVersions
// ensure that all the fixVersions are available on B
.collect { v -> nodeHelper.createVersion(issue, v.name, v.description) }
// assign affected versions from JIRA A to JIRA B
issue.affectedVersions = replica
.affectedVersions
.collect { v -> nodeHelper.createVersion(issue, v.name, v.description) }

We have document for Jira server

https://docs.idalko.com/exalate/display/ED/Versions.groovy

But I need this for Jira Cloud to Jira Server


Comments:

Ariel Aguilar commented on 22 September 2021

Hi Vinay,

There is: https://docs.idalko.com/exalate/x/EYG0

This should apply for Jira Cloud and Jira Server.

Kind regards,

Ariel

Vinay commented on 23 September 2021

Please check the document again at the end

If you want to synchronize version start date, release date and description you can use the external script versions.groovy, which has been developed specifically for such cases.

If we go to that link it is only available for JIRA SERVER STARTING FROM 4.5.1

Ariel Aguilar commented on 27 September 2021

Hi Vinay,

Yes that’s true, what Jira Server version are you currently working on?

Kind regards,

Ariel

Vinay commented on 28 September 2021

Hi Ariel Aguilar ,

I’m on latest version(5.2.3) on Jiraserver.

But we need to sync the versions data from Jira cloud to Jira server

The document will work from Jira server to Jira server. But I need the same script for Jiracloud to Jira server. Is it possible?

Regards,

Vinay