microsoft / team-explorer-everywhere

Team Explorer Everywhere Plugin for Eclipse
Other
300 stars 97 forks source link

Get startDate and finishDate from iterations #322

Open RevoltEnergy opened 4 years ago

RevoltEnergy commented 4 years ago

Is there any option to get startDate and finishDate from iterations? REST API gives in response attributes field:

{
   "id": "some-id",
   "name": "Iteration N",
   "path": "SOME\\Iteration N",
   "attributes": {
       "startDate": "2018-08-26T00:00:00Z",
       "finishDate": "2018-09-25T00:00:00Z",
       "timeFrame": "past"
   },
   "url": "https://some.url"
}

SDK gives an opportunity to get Iterations like this:

Project project = tfsClient.getWorkItemClient().getProjects().get(projectName);
NodeCollection iterationRootNodes = project.getIterationRootNodes();

and NodeCollection holds an array of Node objects, which do not have any info about iteration's start date or finish date. How to get that using SDK?