How can i get the history of the work item in the plugin using server SDK?
Hi everyone,
I want to retrieve the work item history and i have a requirement to know the details of the attributes in advisor plugin, that were undergone changes with the current save operation of the work item i.e i want to get the difference between the old state and the new state of the work item .
For better understanding,
I created a work item with summary and category and saved it. Then i added Description when i opened it in the next time . So i want to get the details that "Description" was added newly . in short i want to get the history.
I tried my best to explain.
Kindly help me to solve this.
Thanking you.
-Jyothsna.
One answer
The states are stored in the state table. As far as i know the interface IAuditable provides the access to the historical data.
com.ibm.team.repository.common.IAuditable
You can get the PredecessorState and the MergedPredecessor State from that interface. See below how to get all states.