Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SQL How can I find who opened a Sprint? Edited

Can somebody help me to find the relation in the database on who opened a particular Sprint?

Thank you!

4 answers

1 accepted

1 vote
Answer accepted

Jira Version: 7.7.1

The data of the sprint creation is stored in the table userhistoryitem, but it is not 100% reliable, as it can be overwritten or be deleted.

userhistoryitem only contains the sprint name at creation time, but not the current sprint name, and the timestamp can be overwritten as stated above.
Usually you will rename the sprint right after creation, so you want to select on the current sprint name.

Here is the database SQL for an oracle database:

select (TO_DATE('1970-01-01','YYYY-MM-DD') + lastviewed / 86400000) changed_timestamp, 
uh.username created_by, original_name, current_sprint_name
from ao_60db71_sprint s
left join userhistoryitem uh
on (uh.entitytype='Sprint' and = uh.entityid)
order by changed_timestamp;



  • replace MYCURRENTSPRINTNAME with your sprint name
  • lastviewed is stored as milliseconds after 01.01.1970, so it needs to be transformed to into a readable format.
  • userhistorydata is tricky. It only stores one record per user and sprint. As long as the creator is the only person editing the sprint name, the changed_timestamp will remain the creation date.
    If, however, a different user (user X) edits the Sprint Name and the creator edits the sprint name again, then the changed_timestamp of the creator will not be the creation date anymore. (it will be the timestamp where he edited the name after user X had edited the name before)
  • userhistorydata gets purged periodically, so this query will only work for a few weeks after sprint creation
  • summary: the first record of the SQL will most probably be the creator with the creation timestamp, however not 100%.

Could someone translate this query to MS SQL? MS SQL cannot find some objects like 


I found here that (unfortunately) this info does not seem to be stored in the Jira database


As per my knowledge, Jira doesn't provide this functionality. 



Can I assume that the first entry in the "userhistoryitem" for the sprint's "rapid_view" represents the creator?

/* Find Sprint creator */
SELECT TOP 1 UH.ID, SP.NAME sprintname, USERNAME creator
FROM [My_Jira].[dbo].[userhistoryitem] UH 

Suggest an answer

Log in or Sign up to answer

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you