The Issue matches JQL validator allows you to block a workflow transition if the issue doesn’t match the JQL query.
Define the JQL query that has to be met by the issue in the JQL field (e.g. “type = Bug and Priority = Blocker”)
Define the text of the error message in the Error message text field (e.g. “The issue doesn’t contain any comments”)