I work with the Azure DevOps API and use the Revisions function to get the work item history.
I have seen a strange behavior when the work item (test case in my example) changed only by removing a work item link (no comment added nor other fields updated). This change is properly displayed in the "History" tab of the work item in the web interface, but the Revisions API does not return it. In fact it looks like that the revision number of the work item was not even increased.
Is there a way to get also these history items?
Is there a way to get also these history items?
You can try Updates-List or Updates-Get.
Updates-List:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/updates?api-version=5.1
Updates-Get:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/updates/{updateNumber}?api-version=5.1
More Details:
Here's my history of Test Case work item:

The Updates-List will return count 4:

While the Revisions-List will return count 2(It ignores the changes where I add/delete the link only):

From the response of Updates-list you can find the history about link added/deleted:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With