Hi...I need a validator to allow a transition only if the epic has at least one child. I tried to use one of the examples under the simple scripted validator section in scriptrunner (Has at least one outward duplicate link) and adapted it to what I need but it does not seem to work:
issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains('is epic of')
I also changed it from Outward to Inward to see if that made a difference but still no luck. Maybe it can not be done like that and it needs an actual script? If so, any ideas?
Thank you