The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Getting Current User Sessions in Jira

Nadir Jabbarli
Contributor
December 5, 2024

Hi,

 

I need to get the 'Current User Sessions' section in Jira from the database, and display this data in PRTG Tool. The data I need is in the form of a count. I want to see how many people are currently in the system. Can you help me with this?

 

Thanks in advance!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Marc -Devoteam-
Community Champion
December 5, 2024

Hi @nad 

This is not stored in the DB, but in a log.

See this article viewing-user-sessions 

Nadir Jabbarli
Contributor
December 5, 2024

image.png
I want to extract the data mentioned in the image from the database and display it in PRTG.

Actually, the PostgreSQL script mentioned in the link works for me, but I need to filter out the active users. For that, I need the corresponding SQL query.

Link 

Please help me

Marc -Devoteam-
Community Champion
December 6, 2024

Hi @Nadir Jabbarli 

I don't have that query and if none one does, you need to figure it out.

Here you can find the DB schemas, based on version, find the right schema and tables you need to get data from.

database-schema 

Still this is bad practice as if you make a mistake and break something your Jira is down with a broken DB.

Best practice is to use the GUI or the access log.

Like Nadir Jabbarli likes this
Nadir Jabbarli
Contributor
December 6, 2024

It’s polite and appreciative

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events