且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 TFS REST API 获取迭代中的剩余天数

更新时间:2023-01-31 15:39:17

没有这样的直接 api 来获取迭代中剩余的天数.您需要使用下面的 api 获取迭代的团队设置,以在teamSettings"中获取startDate"、finishDate"、workingDays"并计算迭代中剩余的天数:

There is no such direct api to get the days remaining in the iteration. You need to get the team setting for an iteration with api below, to get "startDate", "finishDate", "workingDays" in "teamSettings" and calculate the days remaining in the iteration:

GET https://{instance}/DefaultCollection/{project}/{team}/_apis/work/TeamSettings/Iterations/{iterationId}?api-version={version}