Hello,
We recently upgraded to JIRA Data Center 7.12.3 and ScriptRunner 5.4.47.
We use a custom script post-function on the Create transition in one of our workflows that scripts a separate plugin (Metadata for JIRA). We have 2 nodes and the script works on node 1 but not node 2.
Here is the start of the script:
import com.mindprod.csv.CSVReader
import com.atlassian.jira.component.ComponentAccessor
// ... more imports ...
import com.osoboo.jira.metadata.MetadataService
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import org.apache.log4j.Level
log.setLevel(Level.DEBUG)
@WithPlugin("com.osoboo.jira-metadata-plugin")
@PluginModule
MetadataService metadataService
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def issueManager = ComponentAccessor.getIssueManager()
def userManager = ComponentAccessor.getUserManager()
def user = ComponentAccessor.getJiraAuthenticationContext()
// ... do stuff with managers and plug-in service ...
Here is a screenshot of the error:
Again, it works just fine on node 1 (no errors, expected behavior), but throws a java.lang.NoClassDefFoundError on node 2. The plug-in key in the script matches the app key for the Metadata for JIRA plug-in.
Please advise. Thanks.
When you look at the installed apps' list in UPM on node 2, can you see the Metadata app? Is that installed correctly and is in enabled state?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.