I know that Sprint in the UI maps to the underlying asset types called Timebox. And I know I can get the Name of a Timebox using the rest-1.v1/Data endpoint:

<Server Base URI>/rest-1.v1/Data/Timebox?sel=Name&page=10,0

When I examine the metadata, I can see that it has BeginDate and EndDate. Do I have to compare those to Now() to get the current sprint?

有帮助吗?

解决方案

No. You can use the State of the Timebox:

<Server Base URI>/rest-1.v1/Data/Timebox?where=State.Code='ACTV'&sel=Name,StartDate,EndDate,State

This depends on using the UI to properly close completed sprints and activate the next one.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top