Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Querying Jira DB for all active users that have created tickets

Aidan Satterwhite July 19, 2023

Hello,

 

I'm looking to query the Jira DB for a list of all active users that have ever created tickets. Is there a way to do that? I've been unable to identify a similar query in my research, and I'm not sure which tables contain the information that I'm looking for.

 

Thank you!

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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.
July 19, 2023

Welcome to the Atlassian Community!

First, my usual advice - reporting off a Jira database is the worst possible way you can report on Jira. 

It's slow, ugly ("show me issue X" takes 12 joins before you triple that with adding "in human language" to the question) and you will probably not understand the answers it gives you.  It's also possible to cripple the performance of the database to the point where it takes down your Jira if you're not running queries against a replica of production.  To be avoided at all times.

But yours is not a complex query likely to cause you problems.

Start with "select creator from jiraissue;" and then you will probably want to join that to cwd_user on "creator = id to get the human data (email, username, display name, etc)

Aidan Satterwhite July 19, 2023

Thank you, this is exactly what I was looking for

Like Nic Brough -Adaptavist- likes this

Suggest an answer

Log in or Sign up to answer