TrackStudio Enterprise 3.1
Example 6

To show the link to Task->Uploads for tasks with custom fields use the following task processing script:

if (task.hasAttachments())
   return gran.app.Config.getInstance().getSiteURL()
          +"/jsp/task/viewtask/uploads/Uploads.jsp?TSSESSION="+task.getSecure().getId()
          +"&ID="+task.getId()
          +"\nDownload";
else
   return "";

Associated custom field properties:

Property 
Value 
Type 
URL 
Copyright (c) 2002-2005. All rights reserved.