Hello Atlassian Community,
i am trying to write a little script listener for wich I need to read data from a table grid custom field. On the iDalko website, there is this code snipplet to do just that:
// find TGE custom fields
PluginAccessor pluginAccessor = ComponentAccessor.getPluginAccessor();
Class tgeConfigManagerClass pluginAccessor.getClassLoader().findClass("com.idalko.jira.plugins.igrid.api.config.grid.TGEGridConfigManager");
def tgeConfigManager = ComponentAccessor.getOSGiComponentInstanceOfType(tgeConfigManagerClass);
//Error Code Line:
List<Long> tgeCustomFieldIds = tgeConfigManager.getGridCustomFieldIds();
However, when I want to try it I get the error message "Cannot find matching method...please check if the declared type is right and if the method exists"
Does anyone know it the method is deprecated or if there is any other issue?
Thanks in advance
Johannes
Hi Johannes,
Are you trying this in the script console ?
If it is - there is some specific behaviour of the scriptrunner with static methods.
Check https://scriptrunner.adaptavist.com/latest/jira/#_static_type_checking
Please try the script in a script post function (and ignore the message). You should be fine.
If not - just raise a ticket by sending a mail to support dot tge at idalk dot com
Thanks
Francis
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.