I am trying to get all objectSchemata as a list using Scriptrunner for Jira.
Is this possible and if yes, how would I need to do it?
There is an insight/asset facade for dealing with ObjectSchemaBean
You can get the full list of Schema with this code:
import com.onresolve.scriptrunner.runner.customisers.PluginModule
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
import com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectSchemaFacade
@WithPlugin('com.riadalabs.jira.plugins.insight')
@PluginModule ObjectSchemaFacade objectSchemaFacade
objectSchemaFacade.findObjectSchemaBeans()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.