Automation rule failing with "Unexpected runtime error executing"

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Automation rules failing.

Environment

Jira Software 9.4.1

Diagnosis

Checking atlassian-jira.log we can see the following error:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 024-06-25 13:28:57,568-0400 automation-rule-executor:thread-1 ERROR test.user 976x412396x1 1o8ujsg 10.10.3.62,0:0:0:0:0:0:0:1 /rest/plugins/1.0/com.codebarrel.addons.automation-key [c.c.a.api.service.ComponentChainImpl] Unexpected runtime error executing component for config 'ComponentConfigBean{id='556', component=ACTION, parentId='null', conditionParentId='null', schemaVersion=6, type='jira.issue.edit', value=IssueActionConfig{operations=[FieldOperation{fieldId='customfield_12345', fieldType='com.atlassian.jira.plugin.system.customfieldtypes:textarea', type=SET, value=<table border="1" class="jeditorTable" style="width:100%"> <tbody> <tr> <td dir="auto" style="background-color:#3498db">Role</td> <td dir="auto" style="background-color:#3498db">Team Member</td> </tr> <tr> <td dir="auto">Project Leader</td> <td dir="auto">(Mandatory)</td> </tr> <tr> <td dir="auto">Technical Approver</td> <td dir="auto">(Mandatory)</td> </tr> <tr> <td dir="auto">Quality Assurance</td> <td dir="auto">(Mandatory)</td> </tr> <tr> <td dir="auto">Regulatory Affairs</td> <td dir="auto">(Mandatory)</td> </tr> <tr> <td dir="auto">Global Product Manager</td> <td dir="auto"> </td> </tr> <tr> <td dir="auto">Manufacturing</td> <td dir="auto"> </td> </tr> <tr> <td dir="auto">Testing</td> <td dir="auto"> </td> </tr> </tbody> </tbody> </table> <p dir="auto"> </p>}], advancedFields='null', sendNotifications=true, useLegacyRendering=false}, conditions=[], children=[], optimisedIds=[]}': com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.ClassCastException: class com.onresolve.scriptrunner.automation.ExecuteScriptIssueActionV2 cannot be cast to class com.codebarrel.automation.api.thirdparty.AutomationRuleComponent (com.onresolve.scriptrunner.automation.ExecuteScriptIssueActionV2 is in unnamed module of loader

Checking the installed plugins we can see two versions of Automation for Jira installed:

1 2 3 4 5 6 7 8 9 10 <plugin> <key>com.atlassian.plugin.automation.jira-automation-plugin</key> <name>Automation Lite for Jira</name> <version>9.0.3</version> <vendor>Atlassian</vendor> <status>INSTALLED</status> <vendor-url>https://atlassian.com/</vendor-url> <framework-version>2</framework-version> <bundled>User installed</bundled> </plugin>
1 2 3 4 5 6 7 8 9 10 <plugin> <key>com.codebarrel.addons.automation</key> <name>Automation for Jira</name> <version>9.0.3</version> <vendor>Atlassian</vendor> <status>ENABLED</status> <vendor-url>https://atlassian.com/</vendor-url> <framework-version>2</framework-version> <bundled>User installed</bundled> </plugin>

Cause

The problem can be caused by two versions of Automation for Jira running on the same Jira instance.

Solution

Disable and remove Automation Lite for Jira.

Updated on February 25, 2025

Still need help?

The Atlassian Community is here for you.