Hi, new to Jira Automation and can't figure out why my latest rule isn't working. I'm trying to get a count of issues with a given status linked to my issue. My rule is:

If I search using the JQL manually then I get the correct count, but the rule above always returns 0 for {{lookupIssues.size}}.
I'm hoping that I'm missing something obvious. Any help gratefully received!