What is the easiest way to extract sprint start and end dates from the JIRA db?

后端 未结 6 1227
别那么骄傲
别那么骄傲 2020-12-19 16:33

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

6条回答
  •  囚心锁ツ
    2020-12-19 17:14

    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
    

提交回复
热议问题