boolean openTask = true;
TaskDataModel model = RedmineTasksUiUtil.findOpenTaskModel(task);
if(model==null) {
openTask = false;
ITaskDataWorkingCopy copy = taskDataManager.getWorkingCopy(task);
model = new TaskDataModel(repository, task, copy);
}
TaskData taskData = model.getTaskData();