# concat() in Jira Automation: syntax and examples

URL: https://goingstellar.ro/reference/smart-values/concat/

concat() adds one text to the end of another and returns the joined text. Chain it to build a line from several fields when plain text around smart values is not an option, for example inside another function.

## Syntax

```
{{text.concat("other text")}}
```

## Arguments

- `other text` (required: yes): The text to add at the end. Quoted text or another smart value. One argument only.

## Works on

- Fields: any text value, such as issue.summary or issue.key.
- Returns: the joined text.

## Examples

```
{{issue.summary.concat(" It's a beautiful day!")}}
```

Add a fixed sentence to a summary.

Result:

```
Hello World! It's a beautiful day!
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.key.concat(": ").concat(issue.summary)}}
```

Build a line with the issue key, a colon and the summary. With a work item key of WEB-44 it reads as below.

Result:

```
WEB-44: Hello World!
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.summary.concat(" ").concat(issue.status.name)}}
```

Chain two calls to add a space and then the status.

Result:

```
Hello World! To Do
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.summary.concat(issue.key)}}
```

Pass another smart value instead of quoted text. No space is added.

Result:

```
Hello World!WEB-44
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- concat() takes one argument. `issue.key.concat(": ", issue.summary)` renders an empty value (checked on Jira Cloud, November 2026); chain two concat() calls instead.
- A number as the argument also renders empty: `issue.summary.concat(1)` gives nothing. Pass the number as quoted text, or use `asNumber` and math if you need to compute it.
- No space is added between the pieces. Put the space inside the quoted text.

## Related

- [replace(), replaceAll() and remove()](https://goingstellar.ro/reference/smart-values/replace/)
- [left() and right()](https://goingstellar.ro/reference/smart-values/left-right/)
- [leftPad() and rightPad()](https://goingstellar.ro/reference/smart-values/leftpad-rightpad/)
- [trim()](https://goingstellar.ro/reference/smart-values/trim/)
- [abbreviate()](https://goingstellar.ro/reference/smart-values/abbreviate/)
- [substring()](https://goingstellar.ro/reference/smart-values/substring/)

## Sources

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

