// gtask.setExpand()
// gtask.setLength();
gtask.setMilestone(milestone);
gtask.setName(task.getName() == null ? "-" : task.getName());
gtask.setNotes(task.getNotes());
Priority prio = task.getPriority();
if (prio != null) {
int priority = prio.getValue();
int p;
switch (priority) {
case Priority.HIGHEST:
case Priority.HIGHER:
case Priority.VERY_HIGH: