User Activity SQL Query
Customers ask for a query to pull all the user activity from Jira for a specific user for a specific period of time. They need the exact information that displays on the Activity tab of a user's profile, without having to click the Show More... link dozens of times.
In the User Profile you can retrieve this information but it takes to much time and some times you can't find all the information if it is too old.
You can run the following query at your database:
select * from changeitem CI join changegroup CG on CI.groupid = CG.id join app_user AP on CG.author = AP.user_key where AP.lower_user_name = 'xxx' and created between '2013-07-01 00:00:00' and '2022-07-31 00:00:00'
You need to change the author from xxx to the lower username you want to search and adjust the period of time.
This query will list all the changes the user have made, the old value, the new value and when it was made.