Is it possible to get all assets objectSchemata using Scriptrunner

Noah Anleitner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2023

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?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Peter-Dave Sheehan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2023

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()

TAGS
AUG Leaders

Atlassian Community Events