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)
Comments
Please sign in to leave a comment.