A build associates work items from last good build to the current successful build. What if you want to find the associated work items between two builds, while having other successful builds in the middle.
Below script supports that. This is developed based on previous post script “Send Custom Build Notes with TFS Build Using PowerShell”.
With set to get only Resolved state work items, this will send a build note with, User Stories/PBIs, Bugs which are associated with the changesets of the in between builds.