does anyone ( ALMWorks folks? ) have a SQL code to return a list of structure-enabled JIRA projects?
thanks in advance.
Community moderators have prevented the ability to post new answers.
Hi Andrei,
SQL won't help there, you'll need to use the getCurentlyEnabledProjects() function in the Structure API.
And the documentation for accessing the Structure API from other plugins.
Edit: you can use Groovy Script Runner to access the Structure API:
import com.atlassian.jira.component.ComponentAccessor def plugin = ComponentAccessor.getPluginAccessor().getPlugin('com.almworks.jira.structure') def structureConfig = plugin.getModuleDescriptor(‘structure-configuration’) structureConfig.getCurrentlyEnabledProjects()
Hope that helps!
Robert
You'll need .getModule() at the end of line 3: def structureConfig = plugin.getModuleDescriptor('structure-configuration').getModule()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.