I am trying to restrict sub-tasks from being created underneath epics. I have seen that the following scripts have worked for folks, but I can't get them to work for me. Please let me know if you see what I am doing wrong! Attached is a photo of one of the scripts in the validator section of the create transition. Help!
!["Epic"].contains(issue.parentObject?.issueType.name)
["Task", "Bug"].contains(issue.parentObject?.issueType.name)
