I've used the following code to try to validate that there is a certain link type when a custom field has a certain value. It is failing whether I create the link before the transition or when I try to link during the transition. I've used the link name, in inward link name, and the outward link name. Nothing successful. Any suggestions?
if (cfValues['Implementing Standard Fields']?.value == "Yes") {
return issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains('Implementation')
}
else {
return true
}