I have a certain type of sub-task that need to be only open and done as opposed to going through multiple steps like the default workflow. However, not all sub-tasks should have this alternate workflow. Is there a way to assign the type of workflow when the sub-task is created? If not through the UI, then programmatically?
TIA
No, the sub-task issue type determines the workflow. You can only allocate one workflow per type.
Nothing to stop you having two types of sub-task with different workflows though (and using "move issue" to swap between them if the wrong one is raised)
An alternative way to do it is to use mutually exclusive transition conditions in the same workflow to create the impression of two different workflows in one. You can set some custom field value and have the conditions be based on whether that custom field is A or B. This is not an optimal solution but it's a way to do it if you can only use one sub-task issue type (which limits you to one workflow).
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.