The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Group Object

ISONE
June 16, 2015

I need to create a com.atlassian.crowd.embedded.api.Group object to added an array in my Custom Listener, but don't know what the syntax is...

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
ISONE
June 16, 2015

I figured it out.  In case someone else finds it helpful.

import com.atlassian.jira.ComponentManager

import com.atlassian.jira.user.util.UserUtil

import com.atlassian.crowd.embedded.api.Group

ComponentManager componentManager = ComponentManager.instance

UserUtil userUtil = componentManager.getUserUtil()

Group g_group = userUtil.getGroupObject("GroupNameInSystem")

TAGS
AUG Leaders

Atlassian Community Events