I am trying to use Scriptrunner to search my Assets for a particular object. However, the object will change so I would like to use a wild card/variable in my search. But I can't seem to figure out how to do that, if it is possible.
I can use Assets.search() in Scriptrunner and it works just fine if I am just typing in text much like I would do in a AQL/IQL search in Jira. But my objects I want to search for are currently in a groovy ArrayList and I want to step through each item and search for it. Just struggling on how to do it.
Was hoping for something kind of along the lines of this:
while (x <= myarraylist.size()) {
Assets.search("myObject = myarraylist[x]")
.....do something with it if it finds it kind of thing.......
x++}
Anyone have any thoughts?