Hi, I'm trying to export list of active users to excel in jira data center, but I'm not able to do so because there is no option to do so.
It sounds like you're just looking to export the names of active users? If so, it'd be far simpler to just fetch the list and paste it into Excel:
import com.atlassian.jira.component.ComponentAccessor
def userManager = ComponentAccessor.getUserManager()
def userBuffer = []
def users = userManager.getAllApplicationUsers()
users.each{user ->
if(user.active == true){
userBuffer.add(user.name + "<br>")
}
}
userBuffer.toString()
.replace(",", "")
.replace("[", "")
.replace("]", "")
.trim();
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.