How can we extract the Defect work item history from RTC without any additional tools
Can this be done by deploying newly introduced Jazz Reporting Services. If yes is all features of it has been enabled in 5.0.1 ? since some aritcle is saying it introduced in 5.0 but all futures are supported in 5.0.2.
And do we need a separate license for this component additionally.
Kindly let us know your inputs ....!
Thanks & Regards
Ashwath
2 answers
Hello Ashwath,
This Link may Help you :
https://stackoverflow.com/questions/32092211/how-to-get-history-data-of-workitem-using-rtc-java-api
IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE, monitor);
System.out.println("Last modified date: "+workItem.modified()+"\n");
IItemManager itm = teamRepository.itemManager();
List history = itm.fetchAllStateHandles((IAuditableHandle) workItem.getStateHandle(), monitor);
System.out.println("Record history details:-");
for(int i = history.size() -1; i >= 0; i--){
IAuditableHandle audit = (IAuditableHandle) history.get(i);
IWorkItem workItemPrevious = (IWorkItem) teamRepository.itemManager().fetchCompleteState
(audit,null);
Date recordModifiedDate = workItemPrevious.modified();
System.out.println("Record modification date: "+recordModifiedDate);
}
Comments
Mushtaq Hussain
Aug 02 '15, 4:48 a.m.Steven Shaw
FORUM MODERATOR / JAZZ DEVELOPER Aug 05 '15, 11:32 a.m.Ashwath G
Aug 06 '15, 3:17 a.m.