Unable to get modified states of workitem programmatically after moving the work items from one project area to other
I have simple client side plugin where I will get a workitem object using the workitem Id provided by user then I will get all modified states of the workitem. using below code.
IAuditableHandle auditableHandle = (IAuditableHandle) workItem.getItemHandle();
List<IWorkItemHandle> handles = itemManager.fetchAllStateHandles( auditableHandle, null);
List<IWorkItem> workItems = new ArrayList<IWorkItem>();
workItems = itemManager.fetchCompleteStates(handles, null);
fetchCompleteStates() returning only one state after moving the workitem from one project area to other. However it is returning all states once I modify and save workitem after movement.
Below is the history of workitem
Dinakar Sunita Vidyalakshmi Jan 15, 2013 8:48 AM
|
Please let me know if more information needed.
Thanks & Regards,
Pheneendra G.