Script Runner in Jira > com.atlassian.crowd.embedded.impl.ImmutableGroup@ > How to fix?

Kristin Bestla April 14, 2013

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;


1 answer

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 14, 2013

userUtil.getGroupsForUser("ces")*.name

Will give you a java.util.List of the group names.

Kristin Bestla April 15, 2013

Worked! Thank you Jamie :)

Suggest an answer

Log in or Sign up to answer