How to get the lastlogintime for a user in Jira 4.4.4?

Hello !

I am working on a plug-in that reports all users who have not logged in to Jira (version 4.4.4) for the past 90 days or so. This is to be in-line with our organization policy to disable users who are inactive.

I researched a bit and found that there are methods to pull this information but I am not able to find the right way to start.

LoginInfoImpl.getLastLoginTime() or LoginInfo.getLastLoginTime() gets this information, but I dont know how to create an instance of LoginInfoImpl or LoginInfo interfaces. How do I get an instance of LoginService or LoginInfoImpl interfaces. Is it available from ComponentManager? Like ComponentManager.getInstance().getLoginInfo()????

Please help.

-Elango

1 answer

0 vote

There is a way to retrieve it from the database: JIRA example queries

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

71 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you