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-127.0.0.1-8080-exec-2205 ERROR gcole 762x1998914x3 1pheaba 10.100.65.239,127.0.0.1 /secure/QuickCreateIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] *************************************************************************************
2016-02-01 12:42:56,884 http-bio-127.0.0.1-8080-exec-2205 ERROR <username> 762x1998914x3 1pheaba <IP address>,127.0.0.1 /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$2.call(Unknown Source)

        at com.onresolve.scriptrunner.jira.workflow.ScriptWorkflowFunction.run(ScriptWorkflowFunction.groovy:83)

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

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

 

Thanks,

Michael

3 answers

This widget could not be displayed.
Vasiliy Zverev Community Champion Feb 01, 2016

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.

 

This widget could not be displayed.

Michael,

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.

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

529 views 3 19
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