repo.login(monitor);
IWorkItemClient workItemClient = (IWorkItemClient) repo.getClientLibrary(IWorkItemClient.class);
IWorkItemWorkingCopyManager copyManager = workItemClient.getWorkItemWorkingCopyManager();
IWorkItemHandle workItemHandle = workItemClient.findWorkItemById(workItemNumber, IWorkItem.FULL_PROFILE, monitor);
copyManager.connect(workItemHandle, IWorkItem.FULL_PROFILE, monitor);
WorkItemWorkingCopy workItemCopy = copyManager.getWorkingCopy(workItemHandle);
IStatus deleteStatus = workItemCopy.delete(monitor);
System.out.println("Delete Status : " + (deleteStatus.isOK() ? "Success" : "Fail"));
TeamPlatform.shutdown();
댓글 없음:
댓글 쓰기