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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,560,415
Community Members
 
Community Events
185
Community Groups

create X clones from task

Hi
I have an Order and a Shipping project. When orders are complete a shipping task is create via an automation. Works great, shown below. 
I have now learned that at some point during the order process it is known that it may consist of multiple shipments. Each shipment should be its own shipping task. 

I have created a "number of shipments" custom field on my order task. In my "create shipment from order" automation i would like to create that number of clones of the order tasks as shipping tasks. Somewhere in my automation i need a loop if sorts, but i can only seem to get automations to loop over lists of things and not at 1..x simple for loop.

Is this only something that i can do with external scripts or rest api's or is there some smartvalue trick that can used here?

 

My current solution is a manual automation trigger for creating more shipments, but it is not as neat as i could wish for.

Thanks in advance for any help.

My current automations, create shipping from order and create next shipping:

 

Screenshot 2022-09-06 at 17.06.54.png

Screenshot 2022-09-06 at 17.07.14.png

 

 

 

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 06, 2022

Hi @JensH ,

Unfortunately there is not looping feature in automation. There is this request that has been open for the suggestion https://codebarrel.atlassian.net/browse/AUT-1312 

What you can do is to simply use the If/else condition to create the number of clones that you want. For example, 

If custom field equals one then create one clone

If custom field equals two then create two clones

etc

Does this make sense?

Thanks @Jack Brickey !

It makes perfect sense for just doing the unrolled for-loop with if-statements. Thanks for reminding me of things that i once learned but forgotten :)

Best
Jens

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events