# toLowerCase() and toUpperCase() in Jira Automation

URL: https://goingstellar.ro/reference/smart-values/tolowercase-touppercase/

toLowerCase() turns every letter of a text value into lower case and toUpperCase() into upper case. Use them to compare text without worrying about capitals, or to shape a value for a URL, a tag or a heading.

## Syntax

```
{{text.toLowerCase()}}
{{text.toUpperCase()}}
```

## Works on

- Fields: any text value, such as issue.key, issue.summary, a label or a name.
- Returns: the same text in one case.

## Examples

```
{{issue.summary.toLowerCase()}}
```

Lower the summary before you compare it with something typed by hand.

Result:

```
hello world!
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.summary.toUpperCase()}}
```

Write the summary as a heading in capitals.

Result:

```
HELLO WORLD!
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.key.toLowerCase()}}
```

Make the issue key usable in a branch name. With a work item key of WEB-44 it gives web-44.

Result:

```
web-44
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.issueType.name.toUpperCase()}}
```

Show the work type in capitals in an alert.

Result:

```
TASK
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.summary.toLowerCase().replace(" ", "-")}}
```

Chain with replace() to get a slug-like text from a title.

Result:

```
hello-world!
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- Case matters in most text functions. `startsWith("hello")` is false on `Hello World!` but true after `toLowerCase()` (checked on Jira Cloud, November 2026). Lower both sides of a comparison.
- Only letters change. The `!` and the digits in a key such as `web-44` stay as they are.
- A chain runs left to right, so `toLowerCase().replace(...)` replaces in the lowered text. Put toLowerCase() first when the replace text is lower case.

## Related

- [capitalize()](https://goingstellar.ro/reference/smart-values/capitalize/)
- [startsWith() and endsWith()](https://goingstellar.ro/reference/smart-values/startswith-endswith/)
- [equals() and equalsIgnoreCase()](https://goingstellar.ro/reference/smart-values/equals-text/)
- [replace(), replaceAll() and remove()](https://goingstellar.ro/reference/smart-values/replace/)
- [trim()](https://goingstellar.ro/reference/smart-values/trim/)
- [indexOf() and lastIndexOf()](https://goingstellar.ro/reference/smart-values/indexof/)

## Sources

- [Jira smart values: text fields (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/)

