Hi!
We got an automation with an incoming webhook trigger.
This trigger calls this webhook when a PR is merged into a specific branch.
The problem is that in this automation we have a JQL condition that checks whether there are no open PRs for the issue and somehow for an item this condition has failed even though the trigger of this automation is merging a PR.
Here is the rule:

Here is the log:

Here is the issue:

So it can be seen that there is only 1 PR for the issue. And it being merged called the automation that failed at the JQL check for having no open PRs.
My guess is that the merged status of PR had not travelled to Jira before the webhook that triggered the automation. Any tips on fixing this so that it does not fail in such cases?