JQL for inactive users since one month

Suma Pralhad Kustagi October 6, 2023

Hi,

  Can anyone help with a query where I can find users who recently got inactive , We have AD for users in Jira server, Please let me know if we can possible get query who was inactive since 15 or 30 days before.

 

Regards,

Suma

3 answers

2 accepted

5 votes
Answer accepted
Bert van Dijk _TMC_nl_
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.
October 6, 2023

Hi @Suma Pralhad Kustagi,

 

No there isn't unfortunately. JQL is about issues, not users. Do you have database access? You can run a query. Else there is a plugin for this.

Query:

https://confluence.atlassian.com/jirakb/find-the-last-login-date-for-a-user-in-jira-server-363364638.html

 

Plugin:

https://marketplace.atlassian.com/search?hosting=server&product=jira&query=inactive%20user

0 votes
Answer accepted
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2023

Hi @Suma Pralhad Kustagi 

This not supported natively and difficult to access as the lastlogindate is held as user properties.

you can get this from the db using

 

SELECT cu.id, cu.directory_id, user_name, lower_user_name, attribute_name, attribute_value,active, created_date, updated_date, first_name, lower_first_name, last_name, lower_last_name, display_name, lower_display_name, email_address, lower_email_address, credential, deleted_externally, external_id

FROM public.cwd_user cu

left outer join cwd_user_attributes cua on cu.id = cua.user_id and attribute_name = 'login.lastLoginMillis'

if you have scriptrunner you can use variations if this script

https://github.com/listertuk/groovy/blob/main/server-dc/Scriptrunner/RemoveLicenseInactiveUsers.groovy

0 votes
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2023

@Suma Pralhad Kustagi  There isn't a default Jira Query to fetch inactive users. However you can do that via database query or any marketplace apps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events