I would like to only allow one type of link to be used through a validator and prohibit the other link types. But I also need to allow the transition to occur if there are no links. I've been able to get everything to work except "null." Any help would be appreciated.
issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name.contains('Dependents'||'null')||
! issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name == ('Blocks')||
! issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name == ('Cloners')||
! issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name == ('Duplicate')||
! issueLinkManager.getOutwardLinks(issue.getId())*.issueLinkType.name == ('Relates')