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: 

Using Scriptrunner, how can I get the description of a group?

Dan Checovetes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2024

Our groups are maintained in Crowd.  It seems that when syncing, groups are pushed to Jira, but not the description of the group.  I have been unsuccessful at finding the right call to make in order to grab the description of the group directly from Crowd.

Right now, I am finding the groups I want to get the description for using this search:

def groupSearch = ComponentAccessor.getComponent(GroupPickerSearchService)
def groupList = groupSearch.findGroups("ps-external-")
This gets me my list of groups just fine, but I'm having trouble at that point.  My guess is something with GroupEntity needs to be done, but I'm not able to get to the description even making calls to the Crowd API directly.  

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Fabio Racobaldo _Catworkx_
Community Champion
March 15, 2024

Hi @Dan Checovetes and welcome,

group description is something stored in crowd and it is not existing on JIRA side.

My suggestion is to try to use crowd REST API https://docs.atlassian.com/atlassian-crowd/5.2.3/REST/#admin/1.0/groups-groupDetails or use api https://docs.atlassian.com/atlassian-crowd/2.7.1/com/atlassian/crowd/service/client/CrowdClient.html on JIRA side.

Hope this helps,

Fabio

Dan Checovetes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2024

Thanks Fabio - I did attempt to go down the CrowdClient path, but had a little trouble with setting up the authentication and point it all to my Crowd instance.  Do you have an example of this by any change?