I want to create the following workflow but am having trouble finding a way, with the current out-of-the-box options that I am finding when I browse the workflow area:
Hi,
You can't do this with default features provided.
You can look into plugins that can help with this functionality.
ScriptRunner Plugin can help you achieve this task.
If you have this plugin, then you can either add a condition or a validator on the workflow transition you want to block until a subtask is created.
You can use the following code for either Simple Scripted Condition or Simple Scripted Validator
if (issue.issueType.name == "Story"){
if (issue.subTaskObjects.size() > 0){
return true
}
else return false
}
else return true
Difference between the output from condition and the validator.
If you chose to go for the condition, then the Transition Status would not show at all.
For e.g. If you add condition on Submitted --> In Progress, then the "In Progress" status won't show untill you add the subtask.
If you chose to go for the validator, then the Transition status would keep showing, but it will throw an error if someone tries to perform that operation, without creating the subtask.
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.