TrackStudio Enterprise 3.5
Create Task / BEFORE:

The following trigger complains if the Deadline task property has not been filled in for the task:

if(task.getDeadline() == null){
     throw new com.trackstudio.exception.UserMessageException("Please fill in the Deadline task property");
}
return task;

The following trigger complains if the Exists in Production custom field value has not been filled in for the task or equals Please Choose:

HashMap udfs = task.getUdfValues();
if (udfs.get("Exists in Production")==null || udfs.get("Exists in Production").equals("Please Choose"))
     throw new UserMessageException("No value selected for the Exists in Production field!");
return task;