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

1 vote
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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?

Suggest an answer

Log in or Sign up to answer