Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is it possible to get all assets objectSchemata using Scriptrunner

Noah Anleitner 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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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