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
| Argument | What it is | Required |
|---|---|---|
prefix or suffix | The 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:
trueRun on Jira Cloud on .
{{issue.summary.startsWith("hello")}}The same check with a different capital: the match fails.
Result:
falseRun on Jira Cloud on .
{{issue.summary.toLowerCase().startsWith("hello")}}Lower the text first to ignore capitals.
Result:
trueRun on Jira Cloud on .
{{issue.description.endsWith("wrong.")}}Check how a description ends, full stop included.
Result:
trueRun on Jira Cloud on .
{{if(issue.summary.startsWith("Hello"), "Greeting", "Other")}}Turn the answer into a word you can print in a message.
Result:
GreetingRun on Jira Cloud on .
Pitfalls
- Both functions compare exactly.
startsWith("hello")is false onHello 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!")onHello World!is false even though the text contains it.
Related
- equals() and equalsIgnoreCase()
- toLowerCase() and toUpperCase()
- {{#if}} … {{/}}
- match()
- indexOf() and lastIndexOf()
- trim()