how to get deleted workitems using RTC Java API
2 answers
According to this thread try using following steps:
IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.SMALL_PROFILE, monitor);
IDetailedStatus status = workItemClient.deleteWorkItem(workItem, monitor);
if (!status.isOK()) {
throw new TeamRepositoryException("Error deleting work item",
status.getException());
}
System.out.println("Deleted work item: " + idString + ".");
My understanding is that deleted work items are really deleted (which is why ADMIN privileges are required to delete them). Once deleted, they no longer exist in the database, and would have to be retrieved from a backup made of the database before the deletion occurred.
Comments
Is there no concept in RTC like recycle bin that we have in HP Quality Center? If a particular item is deleted, it moves from current location to recycle bin.
As far as I am aware if they are deleted, they are gone. That is why you usually don't delete work items, but close them to be able to filter them away.