- Settings
- Content Tools
On this page you find templates which can be used in sumUp configuration rules to change the output format of computed values.
The Velocity Context is initialized with the following content:
key | Class | Description |
---|---|---|
$value | java.lang.BigDecimal | The computed value. |
$number | A helper class to format numeric values. | |
$jiraDateTimeUtils | internal | A helper class which has one function:getTimeFormatedString(long value). This function formats timespan according to the time configuration in JIRA. |
$formatter | JavaSimpleDate format with format ("EEE, d MMM yyyy h:mm a") |
Code Block | ||||
---|---|---|---|---|
| ||||
#if($value) $value #end |
Assumes that the value is in seconds.
Code Block | ||||
---|---|---|---|---|
| ||||
#set($H = '#') #if($value) #set($v = $value.doubleValue()/3600.0) $number.format("$H.$H$H",$v)h #end |
Assumes that the value is in seconds.
Code Block | ||||
---|---|---|---|---|
| ||||
#if($value) $jiraDateTimeUtils.getTimeFormatedString($value.longValue()) #end |
CSS Stylesheet |
---|
#tocContainer { margin-right: 15px; position: fixed; right: 0; top: 160px; width: 23%; z-index: 1; } |
Div | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
|
Powered by Atlassian Confluence 8.5.7, themed by Refined 7.5.3 and Decadis AG