JIRA 5.1 : Removing Commas for Values Held in Number Field Custom Field Type

JIRA adds commas to numeric value stored in Number field, like 1,234. For further reference see JIRAKB:JRA-7582.

The page _Velocity_Template_Customisation does not exist.

This workaround will apply to all Security drop-down lists in the instance.

If you don't wan commas to be added, edit /WEB-INF/classes/templates/plugins/fields/view/view-number.vm. Replace the following line:

$!numberTool.format($value)

with:

$value.longValue()

Make sure to back up the velocity file before changing it. Keep in mind the notes from Modifying JIRA Templates and JSPs​.

RELATED PAGES
No content found for label(s) jira-custom-velocity.