I'm working on a Jira automation that moves issues to the 'Code Review' status. My problem is that a single Jira issue in my project can be associated with multiple reports and have numerous branches and pull requests (PRs).
I want the issue to transition to the 'Code Review' status only when all associated branches have an open pull request. I've attempted to set conditions based on the development fields in Jira Query Language (JQL), explicitly using development[branches].all and development[pullrequests].open. Still, Jira doesn't support a direct comparison between these two.
How can I set a condition to ensure all associated branches of a Jira issue have open PRs before it transitions to 'Code Review'? I'm looking for a solution that doesn't involve manual tracking.
Any guidance or workaround suggestions would be greatly appreciated!