Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General

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:


keyClassDescription
$valuejava.lang.BigDecimalThe computed value.
$number

com.atlassian.jira.util.velocity.NumberTool

A helper class to format numeric values.
$jiraDateTimeUtilsinternalA helper class which has one function:
getTimeFormatedString(long value).

This function formats timespan according to the time configuration in JIRA.

$formatter

java.text.SimpleDateFormat

JavaSimpleDate format with format ("EEE, d MMM yyyy h:mm a")


Default Format

Code Block
languagexml
themeMidnight
#if($value)
$value
#end


Hours Format

(info) Assumes that the value is in seconds.

Code Block
languagexml
themeMidnight
#set($H = '#')
#if($value)
#set($v = $value.doubleValue()/3600.0)
$number.format("$H.$H$H",$v)h
#end


Jira Timespan Format

(info) Assumes that the value is in seconds.

Code Block
languagexml
themeMidnight
#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
styleline-height: 150%;
idtocContainer


Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents
maxLevel2
indent20px
classp



Related Topics