Forums

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

SQL query with "JIRA user login count"

Jörg Geraldy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2018

Hi all,

we want to create a JIRA user management report with the following fields:

username, Full name, login counts, last login

Is it possible to get this report with a SQl query ?

 

Let me know.

Thanks a lot in advance

bye and best regards

Jörg

 

 

1 answer

1 accepted

2 votes
Answer accepted
Alexey Matveev
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.
January 17, 2018

Hello,

It would be something like this

SELECT user_id, display_name, updated_date last_login, attribute_value login_count FROM cwd_user a, cwd_user_attributes b where attribute_name = 'login.count'
and a.id = b.user_id

Jörg Geraldy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 17, 2018

Hi Alexey,

your SQL-query works well; I tested it yesterday.

Good job !

Well done !

Bye and best regards

 

Jörg

Like Sagar Mahajan likes this
vinod vaddi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2020

Hi Alexey ,

That also worked for me .

Thanks !!!!

RichardA September 27, 2021

Hi @Alexey Matveev , We need information to get number of users logged on particular time interval in jira application.

for example today 27-09-2021 from 9am to 10am.

we are using Oracle DB.

Pls suggest

Thanks !!

Alessandro Lombardo
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.
March 24, 2022

Hi @RichardA you can only track last login of users ( you can see the queries here https://confluence.atlassian.com/jirakb/find-the-last-login-date-for-a-user-in-jira-server-363364638.html ) and then you can count number of users that has logged in in a certain period. But there are not historical data about user logins

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events