The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Automation for-each loop

Chasovskikh Kirill
Contributor
July 25, 2022

Hi! 

I need to create subtasks from values in a customfield. The known way is to create branches, where i can check - does the customfield contain Value1?  And create subtask, if it contains.

But if i have a lot of values, this way is too hard.

Is there any way to create For-Each loop? For each value in customfield create subtask.

Thank you!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

5 votes
Answer accepted
Stefan Salzl
Community Champion
July 25, 2022

Hi @Chasovskikh Kirill 

as far as I understood you described 2 different scenarios because the first one would obly be an „if“.

There is a special „for each“ branch that would create a subtask for each value while iterating over a field or a list.

I recently answered a question similar to your requirement. See the following link:

https://community.atlassian.com/t5/Jira-Software-questions/How-to-automatically-create-and-assign-subtasks-in-a-Jira-Team/qaq-p/2084182

 

Hope this is helpful.

Best
Stefan

 

Chasovskikh Kirill
Contributor
July 25, 2022

Thank you, it works!

Like # people like this
Stefan Salzl
Community Champion
July 25, 2022

AWESOME!!! Good to know you got that working 💪💪

Best
Stefan

Anmol Khopade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2023

Stefan,

This is very helpful. Thanks I too was able to solve my issue using above. Appreciate it

Like # people like this
Stefan Salzl
Community Champion
April 28, 2023

@Anmol Khopade 

Great to hear my answer was helpful and you got that working.

Thanks for the feedback.

 

Best

Stefan

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events