how to make a text file for jira users from mysql jiradb database?

Mahendar May 1, 2019

pls help me out from this i am new to this .i got no of active users but do not know how to make a file in with this users. 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 2, 2019

Hi Mahendar,

What utility or tool are you using in order to query your mysql database?  I understand you're looking to create a file with your users listed in it.  The steps to do this will be different among the different tools, such as MySQL Workbench, or possibly mysqldump.

There is some built in support for doing this with MySQL.  If you are just looking for a list of the usernames, you could run a query such as

SELECT lower_user_name 
INTO OUTFILE '/tmp/jirausers.txt'
FROM cwd_user WHERE active=1;

This would create a txt file with a list of all the active user accounts in Jira.

I hope this helps.

Andy

Mahendar May 5, 2019

Thank you Andy.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events