Hi,
I have a variable {{X}} with a list of strings.
Given a smart value {{Y}} (string), I need to find whether there is a matching value in the list X AND its position.
I know how to iterate X and check if Y matches any element, but I don't know how to get the index with the match.
if there is a matching, the idea is then to do {{X.get(index+1)}} and to handle the case when index+1 is out of bound.
Thanks for your help!
NOTE: I am trying this:
Result: {{#NombresdeTareas}} {{#if(equals({{.}}, issue.summary))}} {{index}} {{/}} {{/}}but fails with this error:
Could not extract smart value parameter: {{.: Result: {{#NombresdeTareas}} {{#if(equals({{.}}, issue.summary))}} {{index}} {{/}} {{/}}