Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JSM Automation attempting to display subset of selected Assets Field values in when creating new iss

John Bradley
Contributor
May 25, 2025

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

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2025

Hi @John Bradley 

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.

https://community.atlassian.com/forums/Automation-questions/Removing-Values-in-One-Variable-That-Exist-in-Another/qaq-p/3026231

Please take a look and let me know how it helps.  Thanks!

Kind regards,
Bill

John Bradley
Contributor
May 25, 2025

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!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events