So I have a Jira automation that will progress a ticket from one state to another when a PR is merged. That is pretty straight forward and is mostly OOTB in Jira.
However, I want to add a constraint to this to only progress it when there are no open pull requests against the ticket. Our tickets can on occasion link to multiple repos which can have a pull request open against them. I appreciate this may not be the norm, or maybe it is.
I want to add an if condition to my automation rule that says, if there are no open PRs against the ticket, move it to the next state. Is this possible using a rule, smart values or JQL to achieve this?