Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,911
Community Members
 
Community Events
168
Community Groups

Iterate on all strings in text field with comma delimiter

Hi,

What I'm trying to achieve is to build an automation rule that when triggered will send SMS via Twilio to those numbers.
It is straightforward to do that with one number; but, when I tried to build iteration throughout that list I found it difficult to find anything in the net.
Currently, I'm using branching. on each branch, I calculate the {{issue.PhoneNum.split(",").get(0)}} and activate action with Twilio. so to support 5 numbers I have 5 branches and each has its own Twilio action.

Is there any way to run through all numbers (like for n<{{issue.CC_EscalationNum1.split(",").size}}) and having one action ?

T1.PNG

1 answer

Hi @david_levy , welcome on the community.

You can achieve this using correct configuration of the Branch (Rich text field is name of my custom field):

Screen Shot 2022-09-08 at 22.05.19.png

Than you can access the value under {{number}} smart value. Let me know if you need more help :)

Thanks, Martin,

the smart value behaves like ...split(",").first - it returned just the first number out of 5.

Hi @david_levy , can you share the screenshot of your automatino configuration please?

Here is the first manual iteration that I do.

I duplicate the if block 5 times so I can do that five times; each time just increase the values (see the second screenshot)

1.PNG2222.PNG

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events