I want to count the number of open issues and then add that to a comment telling people where they are in the queue.
So far in my automation I have
Trigger - Manually triggered (this is just for testing I will change it to "Issue created" later)
Then: Lookup issues. Search for issues using JQL "resolution = Unresolved AND Status != Pending".
(I have clicked "Validate issues" and it correctly says "9 issues found")
And: Create variable. Variable name "OpenIssueNumber". Smart value "{{OpenIssueNumber.count}}"
And: add comment to issue: "Hi, there are {{OpenIssueNumber}} open requests ahead of yours."
I would expect this to add a comment saying "Hi, there are 9 open requests ahead of yours." But instead it is saying "Hi, there are open requests ahead of yours."
Where am I going wrong?