Migrating Scriptrunner for Jira 3.14 to 4.1.3.10: Linkage Error for SimpleScriptedCondition

Running JIRA 6.4.12 with ScriptRunner 3.1.4 on my little test server.  I'm making quite extensive use of scriptrunner of workflow conditions, validators and post-functions.  Works great.  My IT group decided to upgrade JIRA from 6.1 to 6.4.12 but they decided to go with version 4.1.3.10.  The first problem, I'm running into is my workflow transitions with ScriptRunner based conditions are not visible so I'm assuming the conditions are failing.  I check the log file and I see:

2016-04-05 14:32:47,595 http-bio-8443-exec-1 WARN 20022993 872x69734x1 yqdjn4 192.168.109.99 /browse/POCM-195 [com.atlassian.ozymandias.SafePluginPointAccess] A LinkageError indicates that plugin code was compiled with outdated versions.  Unable to run plugin code because of 'java.lang.ClassFormatError - Illegal class name "com/onresolve/jira/groovy/canned/workflow/conditions/SimpleScriptedCondition/reporter-ValidatorOnlyCondition$run" in class file com/onresolve/jira/groovy/canned/workflow/conditions/SimpleScriptedCondition/reporter-ValidatorOnlyCondition$run'.

 

So is SimpleScriptedCondition no longer a valid class?  Is there a replacement?  Some documentation on how to migrate?  Any other surprises for validators or post-functions or even behaviours and scripted fields?

1 answer

1 accepted

This is a recent bug: https://productsupport.adaptavist.com/browse/SRJIRA-729

If you can rename it without hyphens it should be fine. Sorry...

Thanks for the quick response.

I got several static analysis warnings but functionally, it is working.

I'll cleanup the warnings later.  wink

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

320 views 0 1
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you