TrackStudio Enterprise 3.2
Example 4

To list all custom fields with values for the current task, use the following Task / Custom Field Value script:

String s = "";
ArrayList udfs = task.getUDFValuesList();
for(Iterator it = udfs.iterator(); it.hasNext();) {
    SecuredUDFValueBean udf = (SecuredUDFValueBean)it.next();
    s += udf.getCaption() + ":";
    Object value = udf.getValue(task);
    s +=  ((value!=null) ? value : "null") + "|";
}
return s;

Associated custom field properties:

Property 
Value 
Type 
String 
Copyright (c) 2002-2006. All rights reserved.