Some teams use Azure DevOps "Capacity" to plan people's availability. We can leverage that to determine if a person was working on a specific day.
For instance, if we generate a daily scrum for Friday and the user had "Day off" on Thursday, "Yesterday" should changed to show the day or date and show work items for that day instead of Thursday.
Acceptance criteria
- When locking for previous day for a user, skip "Day off" days
- If the previous day would be in the previous Sprint
- Check what was the last work item they worked on.
Fetch the last X items ordered by last changed and filter out work items that are not assigned to a Sprint
- Use the latest work item that the user changed within a Sprint
- Generate a day report for the day the work item was modified