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

0 votes
Answer accepted
Marc - Devoteam
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.
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
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.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events