if(description == null || description.trim().equals("")){
throw new TracException(MessageUtils.getMessage("core.parameter.not.found", "Ticket.description", this.getClass().getName()));
}
MultiParameter multiParameter = new MultiParameter();
multiParameter.addParameter(summary);
multiParameter.addParameter(description);
Hashtable attributes = new Hashtable();
for(String key: TicketKeys.FIELDS_ARRAY){
if(!key.equals(TicketKeys.FIELD_SUMMARY) && !key.equals(TicketKeys.FIELD_DESCRIPTION)){
String attribute = ticket.getOtherAttribute(key);
if(attribute != null && !attribute.trim().equals("")){
attributes.put(key, attribute);
}
}
}
multiParameter.addParameter(attributes);
return multiParameter;
}