Hello good people!
I want to be able to sort bugs in Jira by Groups, depending on reporter. So... I'm trying to automatically set the group by reporter.
In this attempt of mine, I'm getting this problem when the group name is returned; the name of the group isn't displayed but only this here:
com.atlassian.crowd.embedded.impl.ImmutableGroup@9099bd68.
Anyone know how to solve this so that the actual name of the group is displayed?
This is my script:
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.user.util.UserUtil
import com.atlassian.jira.issue.Issue
import com.atlassian.crowd.embedded.api.User
def componentManager = ComponentManager.getInstance()
def userUtil = componentManager.getUserUtil()
GroupList = userUtil.getGroupsForUser("ces");
return GroupList;
userUtil.getGroupsForUser("ces")*.name
Will give you a java.util.List of the group names.
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.