Advanced Format Settings (JSON)
If none of the available format presets described in Column Formatting match your use case, you can define your own format and combine multiple format options in the Advanced Format Settings field:

Overview of Value Types
Number | Formats numeric values. Supports standard numbers, percentages, scientific notation, and fractions. |
Currency | Formats numeric values as currency with currency symbols and locale-specific formatting. |
Date | Formats date and time values using custom date patterns, timezones, and hour cycles. |
Text | Applies text transformations like uppercase, lowercase, title case, or trimming. |
Boolean | Displays boolean values as custom text (e.g., "Yes/No", "Active/Inactive"). |
Common Options
locale (string, optional)
Specifies the locale for formatting using BCP47 format (e.g., "en-US", "de-DE", "fr-FR").
Example:
{"locale": "de-DE"}
Default: JVM default locale of the server where the code executes
Note: Since PocketQuery runs as a Forge app in the cloud, this refers to the default locale of the PocketQuery server infrastructure, not the Confluence instance locale. It is recommended to explicitly specify the locale option to ensure consistent formatting across different server environments.
Number Formatting
Format type: Number
Standard Number Formatting
Used when none of the special options scientificExponentDigits, fractionDenominator, or percent is present.
Key | Description | Default | Available values | Example | Result |
|---|---|---|---|---|---|
| Number of decimal places to display. |
|
CODE
|
| |
| Whether to use thousands separators (commas or periods depending on locale). |
|
|
CODE
|
|
| How to display negative numbers. |
|
|
CODE
|
|
| Rounding strategy for numbers. |
|
|
CODE
|
|
Percentage Formatting
Activated when the percent key is present (the actual value does not matter; the presence of the key is enough).
Key | Description | Default | Available values | Example | Result |
|---|---|---|---|---|---|
| When |
|
|
CODE
|
|
Note: When percent is true, the default for decimals is 0, and useThousandsSeparator defaults to false.
Scientific Notation Formatting
Activated when the scientificExponentDigits key is present.
Key | Description | Default | Example | Result |
|---|---|---|---|---|
| Number of digits in the exponent when using scientific notation. |
|
CODE
|
|
Note: When scientificExponentDigits is present, the value is formatted in scientific notation.
Fraction Formatting
Activated when the fractionDenominator key is present (and scientificExponentDigits is not present).
Key | Description | Default | Example | Result |
|---|---|---|---|---|
| Common denominator for fraction representation (e.g., 2, 4, 8, 16, 100). |
|
CODE
|
|
Note: When fractionDenominator is present, the value is formatted as a fraction. The fraction is automatically reduced to its simplest form.
Priority of Number Sub-Modes
If you combine several special options, the formatter chooses exactly one mode in the following order:
scientificExponentDigits→ scientific notationOtherwise
fractionDenominator→ fractionOtherwise
percent→ percentageOtherwise → standard number
Example:
{"scientificExponentDigits": 2, "percent": true}
→ Scientific notation is used; the percent flag is ignored.
Complete Examples
Advanced Format Settings | Input | Output | |
|---|---|---|---|
Number with Custom Formatting |
CODE
|
|
|
Percentage |
CODE
|
|
|
Scientific Notation |
CODE
|
|
|
Fraction |
CODE
|
|
|
Currency Formatting
Format type: Currency
Key | Description | Default | Available values | Example | Result |
|---|---|---|---|---|---|
| ISO 4217 currency code (e.g., | Currency from locale, or |
CODE
|
| |
| Override the default currency symbol. |
CODE
|
| ||
| Number of decimal places. |
|
CODE
|
| |
| Whether to use thousands separators |
|
|
CODE
|
|
| How to display negative values. |
|
|
CODE
|
|
| When |
|
|
CODE
|
|
| Rounding strategy (same options as Number formatting). |
CODE
|
|
Complete Examples
Advanced Format Settings | Input | Output | |
|---|---|---|---|
Currency with Accounting Format |
CODE
|
|
|
Date/Time Formatting
Format type: Date
Key | Description | Default | Available values | Example | Result |
|---|---|---|---|---|---|
Required for date formatting! | Custom date format pattern using Java Common Patterns:
|
CODE
CODE
CODE
| 1) | ||
| Timezone for date/time formatting. Can be:
|
|
CODE
| Date/time converted to New York timezone | |
| Hour format cycle.
Note: The AM/PM marker is automatically added when using | No conversion (uses format as specified) |
| With 12h:
CODE
With 24h:
CODE
| With 12h: With 24h: |
Note: If dateFormat is not provided or empty, the value is returned as-is.
Complete Examples
Advanced Format Settings | Input | Output | |
|---|---|---|---|
Date with Timezone and 12-Hour Format |
CODE
|
|
|
Text Formatting
Format type: Text
Key | Description | Default | Available values | Example | Result |
|---|---|---|---|---|---|
| Text transformation to apply. |
|
| Uppercase:
CODE
Lowercase:
CODE
Title Case:
CODE
Trim:
CODE
| Uppercase: Lowercase: Title Case: Trim: |
Note: Multiple transformations can be combined. The order is: trim → upper/lower/title.
Boolean Formatting
Format type: Boolean
Key | Description | Default | Example | Result |
|---|---|---|---|---|
| Text to display for |
|
CODE
|
|
| Text to display for |
|
CODE
|
|
Note: Boolean values can be provided as actual booleans or as strings ("true", "false"). Both are handled correctly.
General Behavior and Notes
Combining Options: Most options can be combined. For example, you can use
decimals,useThousandsSeparator, andnegativeStyletogether for number formatting.Empty or missing field input: If Advanced Format Settings is empty or
"{}", no formatting is applied.nullvalues become an empty string; all other values are shown as they come from the query.Invalid values: If a value does not match the expected type (for example, text in a number column), the original value is shown instead of failing.
Per-cell fallback: If formatting for a single cell fails for any reason, that cell falls back to the original value, while other cells in the same column are still formatted.
Locale impact: All number, currency, date, and text transformations that depend on the locale honor the
localeoption when provided; otherwise they use the default locale of the PocketQuery server.
If Custom is chosen as Format Preset, but the Advanced Format Settings field is empty or {}, the value is returned as-is without any formatting.
Quick Reference
Format Type | Key Options |
|---|---|
Number |
|
Number (Percent) |
|
Number (Scientific) |
|
Number (Fraction) |
|
Currency |
|
Date |
|
Text |
|
Boolean |
|