Going Stellar

Home/Smart values reference

Jira Automation smart value

startsWith() and endsWith() in Jira Automation

startsWith() and endsWith() answer true or false: does the text begin or end with the given text. They are the quick way to route work on a title prefix or a closing marker, often inside an if() condition.

Syntax

{{text.startsWith("prefix")}}
{{text.endsWith("suffix")}}

Arguments

ArgumentWhat it isRequired
prefix or suffixThe text to look for at the start or at the end. Case-sensitive.yes

Works on

  • Fields: any text value, such as issue.summary or issue.description.
  • Returns: true or false.

Examples

{{issue.summary.startsWith("Hello")}}

Check that a title begins with an agreed prefix.

Result:

true

Run on Jira Cloud on .

{{issue.summary.startsWith("hello")}}

The same check with a different capital: the match fails.

Result:

false

Run on Jira Cloud on .

{{issue.summary.toLowerCase().startsWith("hello")}}

Lower the text first to ignore capitals.

Result:

true

Run on Jira Cloud on .

{{issue.description.endsWith("wrong.")}}

Check how a description ends, full stop included.

Result:

true

Run on Jira Cloud on .

{{if(issue.summary.startsWith("Hello"), "Greeting", "Other")}}

Turn the answer into a word you can print in a message.

Result:

Greeting

Run on Jira Cloud on .

Pitfalls

  • Both functions compare exactly. startsWith("hello") is false on Hello World! (checked on Jira Cloud, November 2026), and punctuation counts: endsWith("World@") is false.
  • The result is the text true or false, not a decision. Wrap it in if() to print something else, or use it inside a condition.
  • The test looks at the whole value, so a longer prefix such as startsWith("World!") on Hello World! is false even though the text contains it.

Sources

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

Markdown version · All smart values