...
Table of Contents type flat separator pipe
currency
The currency filter formats a number as a monetary amount. It takes the optional, symbol parameter, whose default value is $.
For example:
{{ 100 | currency }}
returns $100
{{ 3000 | currency("€") }}
returns €3000
£
"("£
dump
The dump
filter dumps an object as a JSON string into the template.
...
{{ issue.fields.labels | first }}
returns the first label of the issue.
join
The join
filter returns a string which is a concatenation of strings.
For example:
{{ issue.fields.fixVersions | join("," , "name") }}
joins the names of the Fix Version/s, separated by commas. For example: 1,1.0,2.0
last
The last
filter gets the last value/object in the array.
...
{{ issue.fields.labels | last }}
returns the last label of the issue.
join
...
percent
The percent filter formats a number as a percentage. It takes the optional, decimals parameter, whose default value is 0
.
For example:
{{ issue.fields.fixVersions | join("," , "name") }}
joins the names of the Fix Version/s, separated by commas. For example: 1,1.0,2.0
0.4512 | percent }}
returns 45%
{{ 0.4512 | percent(2) }}
returns 45.12%