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

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:


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 vote


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

Worked! Thank you Jamie :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

59 views 0 5
Read article

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