Copy one reference to another (Inbound Refernces)

Yogesh Mude
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.
September 17, 2020

Team,

We want to copy one referenced object to another reference attribute (Component).

Getting below error...

2020-09-17 10:26:13,428 insight-event-2 ERROR system 718x11558080x2 1uz4pca 172.20.5.140 /rest/plugins/1.0/com.idalko.jira.plugins.igrid-key [c.r.j.p.i.s.automation.action.AutomationRuleGroovyScriptAction] AutomationRuleGroovyScriptAction, Unexpected error: com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean cannot be cast to com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeValueBean
java.lang.ClassCastException: com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean cannot be cast to com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeValueBean
at com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean.setObjectAttributeValueBeans(MutableObjectAttributeBean.java:50)
at com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean$setObjectAttributeValueBeans$1.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at 01-copy-references.UpdateInsightObjectAttributeValue(01-copy-references.groovy:186)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:352)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:68)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:157)
at 01-copy-references$_run_closure1$_closure3$_closure4.doCall(01-copy-references.groovy:146)
... 3 filtered 

 Thanks in advance.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events