I\'m trying to extract the start and end days of my sprints from the Jira database. This would seem like a simple task, but it really (as far as I have found out at least) i
The easiest way to find start date and end date of sprint in Agile jira is to hit jiraschema.AO_60DB71_SPRINT
table. This stores start_date
, end_date
as big int. Jira for some reasons stores these date formats as int data type. To convert the int to date data type, here is the query in MS Sql. You can easily change it to some other database if required.
###This query pulls start_date, end_date, completed_date of all non active sprints in MS SQL.###
select ID, Name SprintName
,START_DATE / 60 / 60 / 24 / 1000 + CAST('12/31/1969' as datetime)+1 StartDate
,END_DATE / 60 / 60 / 24 / 1000 + CAST('12/31/1969' as datetime)+1 EndDate
,COMPLETE_DATE / 60 / 60 / 24 / 1000 + CAST('12/31/1969' as datetime)+1 CompletedDate
FROM
AO_60DB71_SPRINT as sprint
where COMPLETE_DATE is not null