Get a java.lang.ClassCastException error when using automation to update field in linked issue

Jason Yeung July 21, 2021

Hi,

I'm trying to setup an automation rule that when an issue is updated, the due date of all related linked issues will be updated with the due date of the issue. I've setup the following rule:

update due date automation setup.JPG

 

However when I update an issue, its related linked issues' due date doesn't get changed. I had a look at the audit logs of the automation and I see the following:

update due date automation error.JPG

 

The error message is:

Unexpected error executing rule:java.lang.ClassCastException: com.onresolve.scriptrunner.automation.ExecuteScriptIssueActionV2 cannot be cast to com.codebarrel.automation.api.thirdparty.AutomationRuleComponent

I got the automation rule from the following link:

https://community.atlassian.com/t5/Jira-Software-questions/why-automation-is-not-updating-fields-to-linked-issues/qaq-p/1384529

I was wondering what could be the cause of this error?

Sincerely,

Jason

 

1 answer

1 accepted

2 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2021

Hi @Jason Yeung 

Do you have both the Lite and Pro versions of automation for Jira installed?  If so, it could be this issue: https://jira.atlassian.com/browse/JIRAAUTOSERVER-45

The work-around is to disable one or the other, and the fix is to uninstall one of them...or wait for this defect to be resolved.

Best regards,
Bill 

Jason Yeung July 21, 2021

@Bill Sheboy ,

thanks for the info. I have uninstalled the Lite version and it did the trick.

Sincerely,

Jason

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.15
TAGS
AUG Leaders

Atlassian Community Events