jira-integration: Add messages to the user if default data is not found

Add information for the user if required work report type or type of hours are
not found.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
Manuel Rego Casasnovas 2013-01-30 09:40:38 +01:00
parent 31c3247344
commit b68315595a

View file

@ -93,11 +93,15 @@ public class JiraTimesheetSynchronizer implements IJiraTimesheetSynchronizer {
workReportType = findWorkReportType("Jira-connector");
if (workReportType == null) {
jiraSyncInfo
.addSyncFailedReason("Work repor type \"Jira-connector\" not found");
return;
}
typeOfWorkHours = findTypeOfWorkHours("Default");
if (typeOfWorkHours == null) {
jiraSyncInfo
.addSyncFailedReason("Type of work hours \"Default\" not found");
return;
}