I am trying to identify users not in the jira-users group. I have this script i found that gives me members of the jira users group but i'm not sure of the syntax to get only users not in the jira-users group. I also am trying to have this script send an email with the output of the script. I would appreciate being pointed to some resources that would help me with this. is there some documentation that shows this?
1. groovy script to show "non jira-users" members
import com.atlassian.jira.ComponentManager
def componentManager = ComponentManager.instance
componentManager.getUserUtil().getGroup("jira-users").getUsers()
Thank you.
You will have to get all users using getUsers method and use GroupManager to see if the user is in jira-users group or not.
to give credit where credit is due, I got this script from one of Jamie Echlin posts. Great script Jamie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.