I'm trying to get the list of links in TFS given the work item ID using a rest API. I want to filter out the links so that I only have the commits. What format for a web request would I use? I've tried
https://{server & port}/{project}/_workitems?id=140464
but to no avail - It brings me to the 'assigned' to me query area I have also been omitting API-version=4.1 from the URL because for some reason that doesn't work...
Also, I tried looking up the work item in a query but there is little helpful information about the links. I need at least the link's title, but there are only methods to see its type
You can retrieve all the relations (linked work items) for a specific workitem via below REST API:
Then you can get the
ID
type
title
for each of the linked work items in a loop.Just try below PowerShell sample to get the links' information with the REST API: