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
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.
Or just:
issue.subTaskObjects
Ok :-) I was not sure if the API maybe returns an empty collection...
It looks like you're new here. Sign in or register to get started.