Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Error while creating ObjectAttributeBean in Groovy script for Insight automation script


As seen in many examples, I am trying to set the object's attribute to a value that is also an object. So, I have prepared all the necessary variables and objects, and am now ready to create the attribute value, add it to the object attribute list and store the whole thing. But!

I got stuck on this error which I don't fully get:

class com.riadalabs.jira.plugins.insight.common.exception.GroovyInsightException

GroovyInsightException: No signature of method: is applicable for argument types: (,, java.util.ArrayList) values: [sasas (TIAPBIS-1507901), ObjectTypeAttributeBean [id=15093, name=Tier 2, type=REFERENCED_OBJECT, defaultType=NONE], ...] Possible solutions: createObjectAttributeBeanForObject(,, [Ljava.lang.String;), createObjectAttributeBeanForObject(,, java.text.DateFormat, java.text.DateFormat, [Ljava.lang.String;)'

The code that produced the error:"object? "+object+" - "+object?.getClass());"objtypeToSet?"+objtypeToSet+" - "+objtypeToSet?.getClass());"valList?"+valList+" - "+valList?.getClass());"valList element?"+valList.getAt(0)+" - "+valList.getAt(0)?.getClass());
def newObjectAttributeBean = objectAttributeBeanFactory.createObjectAttributeBeanForObject(object, objtypeToSet, valList);

The logs showing values and classes before the error:

021-11-09 11:18:28,140 [https-openssl-nio-443-exec-23] | object? sasas (TIAPBIS-1507901) - class
2021-11-09 11:18:28,140 [https-openssl-nio-443-exec-23] | objtypeToSet?ObjectTypeAttributeBean [id=15093, name=Tier 2, type=REFERENCED_OBJECT, defaultType=NONE] - class
2021-11-09 11:18:28,140 [https-openssl-nio-443-exec-23] | valList?[TIAPBIS-1256821] - class java.util.ArrayList
2021-11-09 11:18:28,140 [https-openssl-nio-443-exec-23] | valList element?TIAPBIS-1256821 - class java.lang.String

I'm trying to figure out what to pass to the function to make it work?

I hope it is something simple I overlooked. 


1 answer

1 accepted

0 votes
Answer accepted

ArrayList --> String... Argh!

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events