How do I access a Custom Variable while iterating through a Smart Value List?

Gordon Thomas August 13, 2022

I'm running into an issue trying to access Custom Variables created in Automation while iterating through a Smart Value List.

An simplified example:

There are two Custom Variables defined in the Automation Workflow:

  • {{MyList}} = "a,b,c,d,e,f,"
  • {{MyVar}} = "A"

 

I can use a Log Action with following, and it will return "abcdef & A":

 {{#MyList.split(",")}}{{.}}{{/}} & {{MyVar}}

 

But when I use a Log Action while iterating through the first Custom Variable, and try to reference the second Custom Variable from within, it fails. 

In this example, the following returns the string "abcdef" instead of "aAbAcAdAeAfA".

 {{#MyList.split(",")}}{.}{{MyVar}}{{/}}

 

How do I reference a Custom Variable while iterating through a Smart Value list?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events