Going Stellar

Home/Smart values reference

Jira Automation smart value

charAt() in Jira Automation: syntax and examples

charAt() returns the single character at a position in a text value. Positions start at 0. It is useful for initials, prefixes and checks on the first letter of a summary.

Syntax

{{issue.summary.charAt(index)}}

Arguments

ArgumentWhat it isRequired
indexPosition of the character, starting at 0.yes

Works on

  • Fields: any text value, such as issue.summary, issue.description or a label.
  • Returns: a one-character text.

Examples

{{issue.summary.charAt(1)}}

Read the second character, since counting starts at 0.

Result:

e

Run on Jira Cloud on .

{{issue.summary.charAt(11)}}

Read the last character of a 12-character summary.

Result:

!

Run on Jira Cloud on .

{{issue.description.charAt(0)}}

Get the first letter of the description.

Result:

C

Run on Jira Cloud on .

{{issue.summary.charAt(0)}}{{issue.summary.split(" ").last.charAt(0)}}

Build initials from the first letter of the first and the last word.

Result:

HW

Run on Jira Cloud on .

{{issue.summary.charAt(0).toLowerCase()}}

Chain with toLowerCase() to normalise the first letter before comparing it.

Result:

h

Run on Jira Cloud on .

Where the documentation differs

  • {{issue.summary.charAt(12)}}

    Run on Jira Cloud, : the documentation says Null, the actual result is Failed to get value for issue.summary.charAt(12).

Pitfalls

  • An index past the end of the text is a runtime error, not an empty value: charAt(12) on Hello World! fails with Failed to get value for issue.summary.charAt(12). The Atlassian page says it returns Null (checked on Jira Cloud, November 2026).
  • A negative index fails the same way (Failed to get value for issue.summary.charAt(-1)), so you cannot count from the end.
  • The first character is index 0, so the last one is the length minus 1. Use length when the text size changes.

Sources

  1. Jira smart values: text fields (Atlassian Support)

Markdown version · All smart values