My goal is to determine the number of outward linked issues of the current issue that are not in status "Declined".
From my research it seems lookupIssues is my best bet, however I'm not sure if I'm trying to do too much at once.
I currently have:

However, there is no output due to this error:

10152 is field "status" - so far so good. But I'm trying to understand the cause for the error.
The scope of the automation does not make a difference - the error is the same with a global scope.
Thanks!