diff options
| author | David Koren <David.Koren@twine-s.com> | 2022-02-17 15:27:57 +0200 |
|---|---|---|
| committer | David Koren <David.Koren@twine-s.com> | 2022-02-17 15:27:57 +0200 |
| commit | 4167abc26282bd85cff752f3c940688b6a250437 (patch) | |
| tree | d6ecf9db568df9343aaf1a8c3b4b9840e83a12a3 /Software | |
| parent | 6afe8061703d82cd5899deacaf88f34ce0442e19 (diff) | |
| download | Tango-4167abc26282bd85cff752f3c940688b6a250437.tar.gz Tango-4167abc26282bd85cff752f3c940688b6a250437.zip | |
Fixed bug with maximum work items on machine studio.
Diffstat (limited to 'Software')
| -rw-r--r-- | Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs b/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs index 92c56187b..750c5fa58 100644 --- a/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs +++ b/Software/Visual_Studio/Tango.TFS/TeamFoundationServiceClient.cs @@ -551,7 +551,15 @@ namespace Tango.TFS WorkItemTrackingHttpClient witClient = connection.GetClient<WorkItemTrackingHttpClient>(); - var items = witClient.GetWorkItemsAsync(ids).Result; + var idsList = ids.ChunkBy(200); + + List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem> items = new List<Microsoft.TeamFoundation.WorkItemTracking.WebApi.Models.WorkItem>(); + + foreach (var idsChunk in idsList) + { + var chunkItems = witClient.GetWorkItemsAsync(idsChunk).Result; + items.AddRange(chunkItems); + } return items.Select(x => ConvertToWorkItem(project, x)).ToList(); }); |
