Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to export list of active users to excel in jira data center

Andrew W Matthews January 12, 2023

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.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Ken McClean
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2023

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();  


TAGS
AUG Leaders

Atlassian Community Events