Hi,
I am doing a Lookup Objects function to get all the roles that can be assigned to an app and get the approvers for the roles.
The output of {{lookupObjects.Approvers}} looks something like this
[5b2...579, 610...1f6], 610...1f6
and if I do {{lookupObjects.Approvers.size}} I get "2" returned, so it appears I have a nested list. I want to flatten this list so I can perform de-duping and set the Approvers field with the list of users.
I have tried split() and join() without much luck. And I also tried using a for each loop, but I seem to be running into a problem with order of operations.
Is there anything neat tricks I can do to flatten this list?
Apparently there is a `flatten()` command, learned that in here https://confluence.atlassian.com/jirakb/auto-populate-approvers-from-asset-objects-attributes-1072474097.html.
That worked nicely, and then I was able to use `distinct()` on it to get my list of Approvers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.