If I type this in to the ScriptRunner Console, it does not recognize iqlFacade.findObjectsByIQLAndSchema. I get a message the says it can't find the matching method. This happens with any objectFacade call such as objectFacade.loadObjectBean("object key here") ie TSD-18.
com.atlassian.jira.component.ComponentAccessor;
/* Get Insight IQL Facade from plugin accessor */<br>Class iqlFacadeClass = ComponentAccessor.getPluginAccessor().getClassLoader().findClass("com.riadalabs.jira.plugins.insight.channel.external.api.facade.IQLFacade");<br>def iqlFacade = ComponentAccessor.getOSGiComponentInstanceOfType(iqlFacadeClass);<br><br>/* Specify the schema id as well as the IQL that will fetch objects. In this case all objects with Name matching the valueCF, be sure to include " around value */<br>def objects = iqlFacade.findObjectsByIQLAndSchema(1,<span> </span>"\"The attribute\" = \"" + attribute value +<span> </span>"\"");<br><br>// See the complete list of possible IQL on the Insight Query Language documentation page<br>/* If this is a mandatory field you should be able to do this: */<br>log.info("Insight object: " + objects[0]); return true;import