How to get start and end dates of a sprint using jira api? -


below url giving information except start , end dates of sprint .

http://jira.example.com/rest/api/2/search?fields=assignee,key,summary,worklog,timeoriginalestimate,aggregatetimespent,&jql=project=blah+and+sprint=57

assuming you're recent version of jira , jira software, can use jira agile rest api's.

interesting rest api resources are:

get issue: /rest/agile/1.0/issue/{issueidorkey}
output of resource include agile fields , sprint name , id, e.g.:

... "sprint": {     "id": 37,     "self": "http://www.example.com/jira/rest/agile/1.0/sprint/13",     "state": "future",     "name": "sprint 2" }, ... 

get sprint: /rest/agile/1.0/sprint/{sprintid} output of resource include sprint start , end dates, e.g.:

{     "id": 37,     "self": "http://www.example.com/jira/rest/agile/1.0/sprint/23",     "state": "closed",     "name": "sprint 1",     "startdate": "2015-04-11t15:22:00.000+10:00",     "enddate": "2015-04-20t01:22:00.000+10:00",     "completedate": "2015-04-20t11:04:00.000+10:00",     "originboardid": 5 } 

the docs may contain other useful resources you.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -