We have a system in use where developers will log a support ticket using a new \'Support Ticket\' work item in TFS 2010. If there\'s a code change as a result they will link the
You can write queries against the TFS data warehouse or the TFS analysis cube, assuming you have reporting configured. Do not write queries directly against the project collection databases.
The data in the warehouse should contain what you're after. For example, there is a Fact table for linked items:
Work Item Changeset
Contains one row for each relationship between a work item revision and a changeset.
And for work item history:
Work Item History
Versioned file of work items using transition count and record count to aggregate information at a point in time.
It may require some tricky queries, but the data should be there.