I'm attempting to search all groups (not the groups for a specific user) via a groovy script in the Script Runner console using the following method:
List<com.atlassian.crowd.embedded.api.Group> findGroups(String query)
https://docs.atlassian.com/jira/server/com/atlassian/jira/bc/group/search/GroupPickerSearchServiceImpl.html
My script:
import com.atlassian.jira.bc.group.search.GroupPickerSearchServiceImpl
def searchString = "members"
def groupList = GroupPickerSearchServiceImpl.findGroups(searchString)
fails suggesting a string be supplied..
Error
No signature of method: static com.atlassian.jira.bc.group.search.GroupPickerSearchServiceImpl.findGroups() is applicable for argument types: (java.lang.String) values: [members] Possible solutions: findGroups(java.lang.String)
What am I doing wrong? Thanks for any help!