Formatting Date Fields
If you are exporting a date field such as CreatedDate and LastUpdateDate, you can define how the date is displayed. All the patterns supported by the DateTimeFormatter Java API are supported.
Definition:
${dateformat("<Format>"):<Field name>} |
Formatting Number Field
Available in Xporter for Jira 3.3.0 and later.
If you are exporting a Number Field, you can define how the number is displayed. All the patterns supported by the DecimalFormat(String pattern) Java API are supported.
You can also specify the Locale you want to use. All the Locales in JRE 7 Supported Locales page are supported.
Definition:
|
Formatting User Picker Fields
In Xporter for Jira 4 and later, displayname and displayemail function were replaced by fullname and emailaddress, respectively.
If you are exporting a User Picker or Multiple Users custom field, you can output the Display Name using the fullname function.
Definition:
${fullname:<Field name>} |
If you are exporting a User Picker or Multiple Users custom field, you can output the email using the emailaddress function.
Definition:
${emailaddress:<Field name>} |
Escaping fields
This function allows fields with line breaks or other special characters to be used inside JavaScript.
Definition:
${escape:<Field name>} |
Creating mappings based on JavaScript using formatted fields
There are times when it may be needed to format a field, execute JavaScript actions on the formatted field, and export the result as HTML.
In these cases, all the above formats are available.
Formatting Duration time field
If you are exporting a duration time field, you can define the behavior you want in order to get the correspondent value. Let's suppose you want to export the duration of an issue, you can get this value in milliseconds as well as the formatted version of this value.
Furthermore, this field allows you to execute JavaScript action on the duration time field and export the result.
Definition:
${durationformat:<Field name>} |