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

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

358 views 0 6
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