How to: Create folder-level configurations using Jython script in Release

Question

How can a non-admin user create a folder-level configuration using the Jython script in Release?

Answer

You need to give the Edit configuration permission for the user at the folder level to perform this operation.

Sample Jython Script

from com.xebialabs.deployit.plugin.api.reflect import Type

configuration = Type.valueOf("jira.Server").getDescriptor().newInstance(None)
configuration.setTitle('Jira Server 2')
configuration.setUrl('http://localhost:4323/jira')
configuration.setFolderId('Applications/Foldera7c403efd8524ae496b0434178e3334e')

savedConfiguration = configurationApi.addConfiguration(configuration)

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.