I would like to run a JQL query to look up issues with certain criteria based on some fields selected on the jira (custom fields) and check if the query returns any results. If it does return results, I want to fail the validation in the transition.
Is this currently possible? If yes, please advise on how should that be done.