I want to create around 100 groups in jira internal directory. Is there any easy way to do it rather manually adding group from UI ? I mean from groovy script or INSERT query (Database) ?
We use groovy runner internal plugin.
Definitely not by touching the database. What scripting add-on do you have?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Groovy Script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which one? I know of 4 that use Groovy one way or another.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We use groovy runner internal plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please, tell us which one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont know which one exactly. It is developed by our internal team.
Sample code which runs there:
/* getAllUsersCount.groovy */
/* calculate all the user count */
import com.atlassian.jira.user.ApplicationUser
Iterator<ApplicationUser> userIterator = userManager.getUsers().iterator()
int count = 0
while (userIterator.hasNext()) {
userIterator.next()
count++
}
println(count)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, there's not a lot I can tell you, as we have no idea of the capabilities of that, including where it runs.
You'll need something like GroupManager.AddGroup() calls, but I can't do a lot else for you.
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.