Trying to figure out how to pass in smart variable value when defining another smart variable referencing some function parameter.
For example:
I have an issue with 10 comments.
Given smart variable:
commentNumber = 5
How to extract this comment from {{issue.comments}}?
I have tried creating smart variable with value
{{issue.comments.get(commentNumber)}} no data is returned
I have also tried {{issue.comments.get({{commentNumber}})}}
But automation returns an error in execution
The example above is somewhat arbitrary, and I do not need to hardcode comment Number, since it is calculated dynamically.
UPDATE:
there is actually a Bug Report on this:
https://jira.atlassian.com/browse/JRACLOUD-75659