Scenario:
We have an Asset object called "Employees", which has among other attributes, one called "Apps list" that stores all applications an user has access to.
Theres another object called Systems which contains all systems and their Sys Admins.
When someone leaves the company, I want to create an automation that creates tasks for the Sys Admins, but only for the apps the user has access.
Ex: John has access to App A and App B, one task for each system and for each sys admin if different.
Within the issue, I have an Asset field with the "Employees" object. From this field, I can find the apps listed in the Employees attribute using the smart value:
{{issue.Employees.App List}} or {{issue.Employees.App List.Name}}
I can do what I want creating tons of "ifs", but I want to make something better. I tried to store the smart value {{issue.Employees.App List}} in a var called {{empApps}}. It works.
Then, I created a lookup table and set App Names grouping by sys admin and that the user in the issue contain it. After that, I created another var to transform the lookup table into string.
The problem is that when I try to do something like: {{tableStr.match("({{empApp}})")}} it just doesnt work. Any thoughts on this?