Hi there,
I am trying to calculate number of linked issues by using variable with formula and it returns 2 as expected and also need to work with the last linked issue with max key. Here is my variable formula to count all linked issues
{{triggerissue.issuelinks.size.minus(1)}}
Then I try to retrieve the last element from the linked issues which will be the one with max key and getting the error during calculation. The hardcoded value works fine but the dynamically calculated one returns the error
1. This one returns me expected issue key when index is hardcoded as 1 - {{triggerissue.issuelinks.get(1).inwardIssue.key}}
2. These 2 variations give me error when index calculated dynamically - {{triggerissue.issuelinks.get({{triggerissue.issuelinks.size.minus(1)}}).inwardIssue.key}}
or