Originally asked by Harold Oconitrillo on 17 August 2023 (original question)
Dear support,
I try to synchronize version start date, release date according to:
https://docs.exalate.com/docs/how-to-synchronize-versions-in-jira-on-premise
When I make it step by step according to: https://docs.exalate.com/docs/versionsgroovy
So i have error in Outgoing sync:
“'Script cannot be saved. Details: startup failed: [file:/data/atlassian/jira/scripts/Versions.groovy:](file:///data/atlassian/jira/scripts/Versions.groovy: “Follow link”) 458: Apparent variable ‘ExalateApi’ was found in a static scope but doesn’t refer to a local variable, static field or class. Possible causes: You attempted to reference a variable in the binding or an instance variable from a static context. You misspelled a classname or statically imported field. Please check the spelling. You attempted to use a method ‘ExalateApi’ but left out brackets in a place not allowed by the grammar. @ line 458, column 23. def con = ExalateApi.getConnection(connectionId) ^ 1 error '“
My configuration:
I created Versions.groovy file and save it in my $JIRA_HOME/scripts
/data/atlassian/jira/scripts/Versions.groovy
In outgoing sync, I have:
Versions.send()
And in incoming sync I have:
Versions.receive()
Please, where is a problem?