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,
uh.data original_name,
s.name current_sprint_name
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;
Notes
Could someone translate this query to MS SQL? MS SQL cannot find some objects like
ao_60db71_sprint
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tables starting with ao_xxxx_ are Tables that are created by a Plugin.
xxxx is somewhat the id of the Plugin.
The sprint table is delivered by the "plugin" Jira Software (it is not part of Jira Core).
If you dont find a table by the name ao_60db71_sprint, look for another table with the name ao_xxxx_sprint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As per my knowledge, Jira doesn't provide this functionality.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.