Hi,
With Jira automation, I'm doing a lookup and I want to use only the first 20 items of the returned JQL. Since JQL does not support something similar to "TOP N", I wanted to use the index property of the lookup.
Note the "if" below:
{{#lookupIssues}}
{{#if(index.lt(20))}}
{{index}} - {{summary}} (by {{assignee.displayName}})
{{/}}
{{/}}But this doesn't work, without any errors.
The {{index}} part works as expected (in case I remove the condition).
Can I use the index to get the first items of a lookup result?