Integer projectId = taskAttributeMapper.getIntegerValue(taskData.getRoot().getAttribute(RedmineAttribute.PROJECT.getTaskKey()));
Project project = conf.getProjects().getById(projectId.intValue());
if(project!=null) {
TimeEntryActivities activities = project.getTimeEntryActivities();
TimeEntryActivity activity = activities.getDefault();
if(activity==null && activities.getAll().size()>0) {
activity = activities.getAll().get(0);
}
if(activity!=null) {
value = Integer.toString(activity.getId());
}
}
}
} else {
value = activityId.toString();