How to sync Epic status Jira Cloud to On-premise

Originally asked by Narongrit Saelim on 01 June 2022 (original question)


I create script for sync Epic Status following :

https://docs.idalko.com/exalate/display/ED/How+to+sync+epics+in+Jira+on-premise

https://docs.idalko.com/exalate/display/ED/How+to+sync+epics+in+Jira+Cloud

Add Epic.groovy in JIRA_HOME on On-premise

Outgoing add this statement at last line (Jira Cloud)

...
// last line
Epic.send()

Incoming (On-premise)

...
if(firstSync){
       if (replica.type?.name == "Epic") {
        def epicStatusValue = replica.customFields."Epic Status".value.value
        issue.customFields."Epic Status".value = nodeHelper.getOption(issue, "Epic Status", epicStatusValue)
    }
}

...
// Last Line
Epic.receive()

Expected :

Epic Status value must be sync correct.

Actual :

Epic status is None

How to fix it?


Answer by Jose Pablo Alpizar Hidalgo on 06 June 2022

Please check the following community post link to review information you might find helpful for your case
Epic Status value sync help (old community)
and let me know if it help.