I am trying to create a script that will create a copy of an existing workflow scheme. I am almost there, but I cannot figure out how to set the default workflow for the scheme (The one mapped to null, if you read out the mapping of the existing project).
I am using the addWorkflowToScheme method of the workflowSchemeManager class. It wont let me pass null, and an empty string doesn't associate it with anything. Is there a issueTypeId for the default workflow of a specific workflow scheme?
This is driving me nuts.
To anyone who find their way here, this was a snippet of my solution:
if (i.getKey() == null) {
log.warn ('default')
newWorkflowScheme.setDefaultWorkflow(workflowName = wfName)
Type CMD Open
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.