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?
Hi kjacobs,
Govardhan has done this recently using the script runner plugin by Jamie Echlin. He has provided the solution here.
https://answers.atlassian.com/questions/175354/create-sub-tasks-based-multi-select-custom-field
Cheers
Bhushan
:( Getting:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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() issueObject.setProject(issue.getProject()) issueObject.setIssueTypeId("10") issueObject.setParentId(issue.getId()) issueObject.setSummary(issue.getSummary()) issueObject.setAssigneeId(AssigneeValue) subTask = issueManager.createIssue(authenticationContext.getUser(), issueObject) subTaskManager.createSubTaskIssueLink(issue.getGenericValue(), subTask, authenticationContext.getUser()) i++ } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kjacobs,
You can easily use the code and write your own post-function workflow plugin if you want.
Thank you
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.