Hi,
do you know a script (jelly, groovy) we could have those users that are members of group X but not members ogf group Y?
THanks,Rumi
Here is a groovy script which finds all users in Group A which are not in Group B.
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.user.util.UserUtil UserUtil userUtil = ComponentAccessor.getUserUtil() result = '' userUtil.getUsers() .findAll{userUtil.getGroupsForUser(it.getName())*.name.contains('Group A')} .findAll{!userUtil.getGroupsForUser(it.getName())*.name.contains('Group B')} .each{ u -> result += u.name + "" } result
It looks like you're new here. Sign in or register to get started.