Is there a way to create a fast track transition on any type of subtask? I tried type in subTaskIssueTypes(), but it failed. The example issue.issueTypeObject.name == 'Bug' is not helpful, it would mean one post function for every type of subtask.
Any other way possible?
OK, my question wasn t very precise. I have a transition that should only be valid for tasks, not subtasks. The condition all subtasks closed is not enough, as it also accepts subtasks, so I wanted to add a condition on the different task types, without writing it for every one individually.
You can combine any from the above mentioned condition by "||" (or).
def issueType = issue.issueTypeObject return (!issueType.isSubtask()) || issueType.name == 'Task')
Or you can create an array of valid issue type names.
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG