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
| Argument | What it is | Required |
|---|---|---|
index | Position 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:
eRun 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:
CRun 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:
HWRun on Jira Cloud on .
{{issue.summary.charAt(0).toLowerCase()}}Chain with toLowerCase() to normalise the first letter before comparing it.
Result:
hRun on Jira Cloud on .
Where the documentation differs
{{issue.summary.charAt(12)}}Run on Jira Cloud, : the documentation says
Null, the actual result isFailed 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)onHello World!fails withFailed 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
lengthwhen the text size changes.
Related
- substring()
- left() and right()
- length()
- indexOf() and lastIndexOf()
- split()
- toLowerCase() and toUpperCase()