Azure DevOps Rest API: Get Work Items Between Builds API is returning wrong number of work items

Copper Contributor

This particular API 'Get Work Items Between Builds' possibly has a bug.

 

Let's assume, I have four builds A, B, C, D and each of them has at least one associated workitem.

Scenario 1:
Invoke the API with fromBuildId as B and toBuildId as D

Expected Result:
It should return all work items between B and D

Actual Result:
Returns work items only for C and D


Scenario 2:
Invoke the API with fromBuildId as B and toBuildId as B

Expected Result:
It should return all work items for B

Actual Result:
Same as expected


Scenario 3:
Invoke the API with fromBuildId as A and toBuildId as D

Expected Result:
It should return all work items between A and D

Actual Result:
Returns work items only for B, C and D

 

Conclusion: When the fromBuildId and toBuildId are not same, it skips the specified fromBuildId itself and considers from the next build right after the specified fromBuildId

0 Replies