With the following in the additional issue actions the subtask is just being assigned to me and not the default assignee for the component.
MutableIssue issue = issue
//parent = issue.getParentObject()
ComponentManager componentManager = ComponentManager.getInstance()
CustomFieldManager customFieldManager = componentManager.getCustomFieldManager()
//Get valuje of user picker custom field
CustomField customField = customFieldManager.getCustomFieldObjectByName("Name")
customFieldValue = issue.getCustomFieldValue(customField)
Project project = issue.getProjectObject()
ProjectComponent component = componentManager.getProjectComponentManager().findByComponentName(project.getId(), "Laptop Provisioning")
String prefix = customFieldValue
issue.summary = prefix + ' - Provision Laptop'
It started as any story starts, on a normal, rainy day. Admin meets App, and her name was Klok2, and like any first relationship we were both trying to make it work but neither one knew what...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG