Usage
To enable Groovy code for an input, click the curly braces next to a value. Some inputs are locked to Groovy mode and can’t be toggled.




currentUser variable
@Since 11.2.0.0 Interactive Groovy scripts can use thecurrentUser variable, which was previously available only in Work Item field scripts. It represents the signed-in user and provides methods such as getUserId(), getUserName(), getFirstName(), getLastName(), getEmail(), and getRoles().
currentUser is available when a user is interacting with FlexDeploy in the UI, including Work Item field scripts, Groovy Libraries (including Try It), Run Groovy, workflow input default and validation scripts, and property, plugin input, flexfield, list data, and release property form scripts.
currentUser is not available in workflow execution, pipeline execution, or webhook scripts, because those contexts do not have an interactive signed-in user.
Limitations
Imports
- Some scripts in FlexDeploy are appended to other scripts, such as File Type customizations. As a result, they cannot contain import statements.
-
Multiline imports are not supported. For example:
-
-
Static imports are not supported
-
FlexDeploy 10.0.0.0Imports in File Type customizations and static imports are scheduled to be supported in FlexDeploy version 10.0.0.0