Is there a way with the TFS rest api's to get the history of a changeset? I have the item path and its current changeset id, this is actually a merge id, and I want to see the merge details so that I can get the id of the changeset that it came from. From the web I can see this easily, but I need to be able to code this as I need to produce a report for internal audit purposes. Visual history of changeset
Thanks, Anthony
Thanks for the great feedback. I continued investigating myself and found a similar way to finding the information.
$uri = $collection + "/_apis/tfvc/items?api-version=3.0&scopePath=" + $sourcePath + "&recursionLevel=Full"
$response = Invoke-RestMethod -Method Get -Credential $credential -ContentType application/json -Uri $uri
foreach ( $value in $response.value )
{
$uri = $collection + "/_apis/tfvc/items?api-version=3.0&scopePath=" + $value.path + "&versionType=MergeSource&version=" + $value.version
$mergeResponse = Invoke-RestMethod -Method Get -Credential $credential -ContentType application/json -Uri $uri
}