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,457,108
Community Members
 
Community Events
176
Community Groups

Automatically create subtasks for multiple people

Good afternoon!

In our company we use the JIRA application, in one of the created projects there is a large number of tasks and subtasks that will grow as we work.
To facilitate the work and reduce the time to create subtasks, we began to create them using automation.
This helped a lot, but subtasks are created only for one person using this automation.
Tell me, please, is it possible to make it so that when filling out a multi-user field, its own subtask is created for each of the different users?
That is, so that when creating subtasks using automation, is it possible to create subtask data for two or more users?

Thank you in advance!

2 answers

1 accepted

1 vote
Answer accepted

Hi @Ekaterina Georgieva -- Welcome to the Atlassian Community!

For a question like this, please consider posting images of your automation rule and the audit log.  That will provide context for the community to offer ideas.  Thanks!

Given what you have described, I believe you could either use advanced branching or individually pull the values out of the multi-user field using list functions to assign to the new subtasks.

Kind regards,
Bill

Good afternoon, Bill Sheboy!

Thank you very much! It worked

Like Bill Sheboy likes this

@Ekaterina Georgieva  Could you share which option worked ? I want to create task for multiple users on sprint creation. Right now I am able to create a task on sprint creation but want that same task to be assigned to 10 users.

Hi @Rohit Kumar -- Welcome to the Atlassian Community!

Do you mean you want 10 new tasks, one each assigned to a different user?

If so, what is the source of the list of users?  Is it a multi-select user field, as with the original question in this thread?

Kind regards,
Bill

Hi @Bill Sheboy  I was thinking to have the list of users comma separated in parent jira as a comment.  This can be changed as well based on feasibility. 
Also I came across using Advanced Branching as you shared above, but I don't see the 'Advanced Branching' feature for the Jira version we are using. 
So wondering if there's another way to do the same.

You are probably on Server/Data Center version, correct?

If so, the last post from the Atlassian team on this was in August 2021, and still no answer on adding advanced branches to that version for automation rules: https://community.atlassian.com/t5/Automation-articles/Branching-over-smart-values-in-Jira-Automation/bc-p/1769867#M476

The other work-around I was thinking about is using the REST API's bulk issue create to construct the JSON array in the rule and use an iterator to get the users from your field.  I am not using server so I cannot try this, and I wonder if using the iterator will prevent creating well-formed JSON.

If you want to try it, here are a couple of references on the specific method to call:

https://docs.atlassian.com/software/jira/docs/api/REST/8.7.1/#api/2/issue-createIssues

https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

Like Rohit Kumar likes this

Thanks for the input, let me take a look.

Like Bill Sheboy likes this

Hi Ekaterina Georgieva,

 

It sounds like the script that is created for automation having user id of a specific user. Please try changing it to current user.

Suggest an answer

Log in or Sign up to answer