Hello, I have a scenario where I need to use automation to create a new work item triggered by the creation of a new onboarding work item. When the requestor submits the request, they select several software applications the new employee will need access to. The filed for this is an Assets field that contains the 25 applications
Out of the list of 25 applications, I have created specific automation rules to create a new work item for each of about 8 of them, as they need special treatment. Each of these new work items has the same Assets field as the trigger work item, and I can easily set it to the right software value, so that works for me.
For the remaining selected applications that do not need special attention, I would like to do the same - set the Assets field for software to all the ones selected that fit this condition. I would even be content with getting a list of the application names and display them in the description field of the new work item.
So, if the user selected:
Application_A
Application_B
Application_C
Application_D
And Application_A and Application_B were applications that needed their own individual work items, I would want Application_C and Application_D together in one new work item
I have tried to create a list of the applications selected and filter it down, but I can't seem to remove the ones I need to.
I think I am close, or at least on the right track, but everything I've tried based on searches either does not work or I am implementing it incorrectly.
Any help anyone can provide would be greatly appreciated!
John
There was a similar question last week to remove values from one variable that are found in a second one. I suspect my recommended solution for that question can be adapted for your scenario. The basic idea is to create a regular expression and use the replaceAll() function with it to remove them.
Please take a look and let me know how it helps. Thanks!
Kind regards,
Bill
Thank you so much! Worked perfectly for me. This was a big help. Looks like I'll need to learn more about regular expression syntax!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.