How to get Days Remaining in Iteration using TFS REST API

狂风中的少年 提交于 2020-01-30 03:39:50

问题


I am currently using the REST API version 2.0 and connecting to my TFS instance with PowerShell. I can get the following information:

Iteration ID
Iteration Name
Team Member
Team Member Capacity Per day using the example below

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

I can not figure out how to get the days remaining in the iteration.


回答1:


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}


来源:https://stackoverflow.com/questions/41985838/how-to-get-days-remaining-in-iteration-using-tfs-rest-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!