Versions Compared

Key

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

...

Table of Contents
typeflat
separatorpipe

currency

...

The currency filter formats a number as a monetary amount. It takes the optional, symbol parameter The filter takes the currency symbol as a parameter, whose default being value is $.

For example:

{{ 100 | currency }} returns $100

...

{{ issue.fields.labels | first }} returns the first label of the issue.

last

The last filter gets the last value/object in the array. For example:

{{ issue.fields.components | last }} returns the last component object of the issue.

{{ issue.fields.labels | last }} returns the last label of the issue.

join

The join filter returns a string which is a concatenation of strings. 

...

{{ 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. 

For example:

{{ issue.fields.components | last }} returns the last component object of the issue.

...

{{ issue.fields.labels | last }} returns the last label of the issue.

percent

The percent filter formats a number as a percentage. It takes the optional, decimals parameter. The filter takes the currency symbol as a parameter, whose default being value is 0.

For example:

{{ 0.4512 | percentage percent }} returns 45%

{{ 0.4512 | percentagepercent(2) }} returns 45.12%