I am trying to get multiple results from a regex match and make use of those multiple results. So, let's say my input string is:
[{type=Group, value=5bf99101-2825-4cd4-b14b-90e5f611045e, display=Group1, $ref=https://api.atlassian.com/scim/directory/493514aa-110a-47d3-8543-f2bb06c28954/Groups/5bf99101-2825-4cd4-b14b-90e5f611045e}, {type=Group2, value=4, display=GroupName2, $ref=https://api.atlassian.com/scim/directory/493514aa-/Groups/4]
I want to match on the value after "display=" and when I use a regex like :
{{GroupsString.match(".*?display=(.*?), .*?")}}
it seemingly correctly populates my variable "Matches", which prints out as :
Group1, GroupName2
However, my variable Matches does return any values for list expressions like, 'first', 'size', get(0) etc.
According to
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/ match() it says " If multiple matches are found, they return as a collection that can be iterated." but, as mentioned above, I cannot iterate this "collection" as a smart values list.
Any ideas?
Thanks in Advance