It's all about the answers!

Ask a question

Unable to get modified states of workitem programmatically after moving the work items from one project area to other


Pheneenda gadipoodi (11710) | asked Jan 21 '13, 5:58 a.m.
edited Jan 24 '13, 3:10 a.m. by Ralph Schoon (63.1k33646)

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

Found In 

DEV    <Unassigned>

Project Area 

T24    Product-Core

Filed Against 

Business Intelligence/T24 Products/INSR - Insight Risk    Business Intelligence/T24 Products/INSR - Insight Risk

Planned For 

Release R13/R13 Q5 Milestone/201214    Release R14

Restricted Access 

T24    Product-Core

Please let me know if more information needed.

Thanks & Regards,

Pheneendra G.

Be the first one to answer this question!


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.