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.Thanks Steven.
Steven Shaw
FORUM MODERATOR / JAZZ DEVELOPER Aug 05 '15, 11:32 a.m.There is a way to extract the work item history using the JRS Report Builder. First you would select Work Item History as the artifact, then add a condition on the particular work item ID and add the columns you want to display (including Last Update Time and the Work Item Category). Then you would be able to see the paticular changes that occurred and when they occurred.
Ashwath G
Aug 06 '15, 3:17 a.m.Hello Steven,
Thanks for the inputs....we will explore the solution to build the reports.
And is there any article or documentation available explaining the report designing and execution using JRS.
Thank You....!