Is there any way to prevent a transition unless the issue has at least 1 subtask? I'm trying to prevent users from transitioning user stories through the story workflow until at least 1 subtask has been created.
You could use the Script Runner plugin with a simple scripted condition:
issue.subTaskObjects?.size()>0
Henning
Or just:
issue.subTaskObjects
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok :-) I was not sure if the API maybe returns an empty collection...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to a prevent particular transition (i.e Tranistion must not be availble to end User), then you will have to write Custom Condition for this and in Condition Class you can check if Subtask is available or not.
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.