LOG.error("Please configure the tracker properly before trying to submit a defect.");
return null;
}
try {
Project project = client.getProjects().get(projectName);
if (project == null) {
LOG.warn("Product was not found. Unable to create defect.");
return null;
}
WorkItem item = client.newWorkItem(project
.getVisibleWorkItemTypes()[0]);
if (item == null) {
LOG.warn("Unable to create item in TFS.");
return null;