I am creating an automation, that has a manual trigger. It looks at the fix version that the trigger issue is assigned to, then does a JQL branch based on "Fixversion= the fix version of the trigger issue
The problem I am having is that the logic in the JQL branch, never includes the trigger issue. I have cut this down to a very simple script as follows

