The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
PD 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 Champions.
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