Using Multi User Field, create that many subtasks with them as the assignee

Is this possible through a plugin or script?

We created a Field using the Multi User, where they can include as many users as they want.

All of these people need a subtask created and assigned to them. Is there a way we can do this?

2 answers

1 accepted

Hi kjacobs,

Govardhan has done this recently using the script runner plugin by Jamie Echlin. He has provided the solution here.



:( Getting:

  • This question or answer has been deleted.
  • The URL has an error.

I have script runner and in the Post Function, after the Multi User Field is filled out, I want to add the script. With Script Runner, do i have to have the file seperate, how can I add it directly somehow? All i see as an option is Script Post-Function.

I have the script he gave but changed line one to match my field name.

So it looks like:

cfStewards = customFieldManager.getCustomFieldObjectByName("Stewards")

Collection<User> users= (Collection) issue.getCustomFieldValue(cfStewards); 

if(users != null)
for(i in 0..users.size()-1)
Object AssigneeValue = users.get(i).getName();

issueObject = issueFactory.getIssue()


subTask = issueManager.createIssue(authenticationContext.getUser(), issueObject)
subTaskManager.createSubTaskIssueLink(issue.getGenericValue(), subTask, authenticationContext.getUser())


Hi kjacobs,

You can easily use the code and write your own post-function workflow plugin if you want.

Thank you


Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,826 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot