TrackStudio Enterprise 3.5
Example 7

To get the logged-in user's login id, use the following Task / Custom Field Value script:

ArrayList arr = new ArrayList();
arr.add(sc.getUser().getLogin());
return arr;

Associated custom field properties:

Property 
Value 
Type 
User