Customizing the display of the Calculated Single-select custom field value on the search list view
You can define a velocity template that will return the Html representation of the calculated custom field on the search list view. Leave it empty to use the default template.
To select a format for a Calculated Single-select custom field type value;
- Locate the custom field on the Custom Fields administration page.
- Click on the cog wheel and click on
- Click on
Edit List View Velocity Template.
- Input the template.
- Click on
You can use the following Velocity variables in the template:
$value: the raw field value, an Option object.
$formattedValue: String representing an Option value.
- and other variables described on this page
Displaying the Calculated Single-select custom field type on Transition and Edit screen
Never show on Transition and Edit screens option controls whether the calculated Single-select custom field can appear on transition and edit screens. If you select this option, the field will not be visible on any Edit or Transition screen, even if it is added to the screen.
Accessing the Calculated Single-select custom field from other Groovy scripts
You can access this field using any of the following getters of the Issue interface