Where are the relationships between Work Items and Build/Release stored in the Team Foundation Server 2015 (Update 2.1) database?
The Build and Release APIs, as per their documentation, can query for any Work Items that relate to a Build/Release as follows:
http://tfsservername:8080/tfs/collectionname/Sandbox/_apis/build/builds/2872/workitems
http://tfsservername:8080/tfs/collectionname/Sandbox/_apis/Release/releases/19/workitem
The WorkItem API has no such call available.
Background info only: Currently Work Items in TFS 2015 Update 2.1 have no option to 'Add Link' to a Release - this makes Work Item deployment tracking very difficult for project managers, managing tens of builds/releases on tens of projects. I'd like to reverse the query used by the above API calls, to add this functionality.