When using the List Capacity Rest API to fetch data for previous Iterations the results doesnot include the data of users who have left the organisation. There is no way to get the capacity of the user for that sprint. How can we get the Sprint capacity snapshot of previous iterations?
If we need to calculate the team capacity for previous iteration we need capacity of all users for that iteration.The current API response removes the users who have left the organisation.
List Capacity API :
https://dev.azure.com/{organization}/{project}/{team}/_apis/work/teamsettings/iterations/{iterationId}/capacities?api-version=5.1