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,
from ao_60db71_sprint s
left join userhistoryitem uh
on (uh.entitytype='Sprint' and s.id = uh.entityid)
where s.name like 'MYCURRENTSPRINTNAME'
order by changed_timestamp;
Can I assume that the first entry in the "userhistoryitem" for the sprint's "rapid_view" represents the creator?
/* Find Sprint creator */ DECLARE @SPRINT BIGINT -- SELECT @SPRINT = 5416 -- SELECT TOP 1 UH.ID, SP.NAME sprintname, USERNAME creator FROM [My_Jira].[dbo].[userhistoryitem] UH INNER JOIN [My_Jira].[dbo].[AO_60DB71_SPRINT] SP WITH(NOLOCK) ON UH.ENTITYID = CAST(SP.RAPID_VIEW_ID AS NVARCHAR) WHERE SP.ID = @SPRINT;
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