Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to work item get history items for changes where only links changed

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?

like image 783
Gaspar Nagy Avatar asked Jan 17 '26 08:01

Gaspar Nagy


1 Answers

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:

enter image description here

The Updates-List will return count 4:

enter image description here

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

enter image description here

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

enter image description here

like image 149
LoLance Avatar answered Jan 20 '26 22:01

LoLance



Donate For Us

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