How to revert back WorkItems' old component after changing them to new component

Copper Contributor

I mistakenly changed the components of different areas to a single component. I created a query for components without realizing that there was a mistake in the query and changed the components of all the areas to a single component. Because of this 13K worktimes got updated.

It is not possible to change each item manually. Is there any way to restore the old components of those work items?

 

I explored the APIs which return the list of all the work items in the query. Also, I explored the API which retrieves the information for old and new component values. I am not sure how can I change back to the values of the old components for all 13K work items.

 

 

Get work item history API:

https://dev.azure.com/astera/Centerprise/_apis/wit/workItems/{id}/updates?api-version=5.1

Get work item ids from query:
https://dev.azure.com/astera/Centerprise/_apis/wit/wiql/{queryid}?api-version=6.0

0 Replies