Hi,
I'm trying to iterate a list of possible custom field options from the Jira API
rest/api/3/field/customfield_10670/context/11056/option and match one of them against a regex to "select" it.
I can iterate the web response using:
{{#webResponse.body.values}}
{{.}}
{{/}}
Which gives:
{id=15022, value=AIR service, disabled=false}
{id=15024, value=Analytics Service, disabled=false}
{id=15161, value=Auth Service, disabled=false}
{id=15271, value=Comments and Evidences (CE) Service, disabled=false}
{id=15013, value=Content Service, disabled=false}
{id=15027, value=Control Service, disabled=false}I want to pull the ID for the value matching "Content". I think I can use match like this from this post but I can't get it to work - I just get null
{{#webResponse.body.values}} {{value.match(".*Content.*")}} {{/}}What am I missing?
I can't tell if it's the regex or the syntax inside the loop