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.