iDalko Table Grid Editor - Error for method "getGridCustomFieldIds()"

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

1 answer

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

116 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you