Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Iterate on all strings in text field with comma delimiter

david_levy
Contributor
September 8, 2022

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

3 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 8, 2022

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 :)

david_levy
Contributor
September 10, 2022

Thanks, Martin,

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

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 12, 2022

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

david_levy
Contributor
September 12, 2022

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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events