This is possible with a Conditioned validator and configuring a condition on whether or not a JQL result returns 0 or more issues.
It looks like you're new here. Sign in or register to get started.