Finding a broken Script

Hi Adaptivist,

We are seeing a number of errors being thrown into the logs by failed scripts that cannot use Jelly scripts (which no longer work).  I'd like to clean out these scripts but I can't find them.  Here is the error:

 2016-02-01 12:42:56,882 http-bio- ERROR gcole 762x1998914x3 1pheaba, /secure/QuickCreateIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] *************************************************************************************
2016-02-01 12:42:56,884 http-bio- ERROR <username> 762x1998914x3 1pheaba <IP address>, /secure/QuickCreateIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: <Project Name>-5621, actionId: 1, file: null

java.lang.Exception: Class /opt/jira/jira_jelly_scripts/qa/post_auto_triage.rb could not be found, or could not be compiled

        at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.ensureScriptCompiled(ScriptRunnerImpl.groovy:592)

        at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.validateAndRunCannedInternal(ScriptRunnerImpl.groovy:394)

        at com.onresolve.scriptrunner.runner.ScriptRunnerImpl.runCanned(ScriptRunnerImpl.groovy:371)

        at com.onresolve.scriptrunner.runner.ScriptRunner$runCanned$ Source)


        at com.onresolve.scriptrunner.jira.workflow.ScriptWorkflowFunction$run$2.callCurrent(Unknown Source)

        at com.onresolve.scriptrunner.jira.workflow.ScriptWorkflowFunction.execute(ScriptWorkflowFunction.groovy:59)




3 answers

In general: it seems to be some postFunction.

How to find requared WF:

  • it seems that issue number = 5621
  • Maybe it is executed on issue creation

It seems that there was a script stored into a file and now JIRA can not find this file.



You may have more luck finding where this post-function is configured in your JIRA instance if you upgrade to a more recent version of ScriptRunner. Note: you may have to use a paid version but you can obtain an evaluation license if needed.

With a more recent version you could use the "Script Registry" to help you find where the scripts are being used.

The Script Registry can be found by going to the JIRA Admin console, then choose Add-ons and Built-in Scripts and then you'll find the Script Registry link.

Post Functions on Issue transitions was it.  We found them.  The Project, and the action ID lead us right to them.  Many thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


270 views 0 7
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