Jira Automation smart value
join() in Jira Automation: syntax and examples
join() writes the items of a list on one line, with the separator you give between them. It is the short way to print labels, versions or comment bodies without a loop and without a trailing comma.
Syntax
{{list.join(separator)}}
Arguments
| Argument | What it is | Required |
|---|---|---|
separator | The text placed between two items, in double quotes. An empty string glues the items together. | yes |
Works on
- Fields: any list, such as issue.labels, issue.comments.body or the result of split().
- Returns: one text value.
Examples
{{issue.labels.join(", ")}}Put all labels in a notification line.
Result:
checkout, demoRun on Jira Cloud on .
Labels: {{issue.labels.join(", ")}}Add a caption in front of the list, written as normal text around the smart value.
Result:
Labels: checkout, demoRun on Jira Cloud on .
{{issue.comments.body.join(" / ")}}Collect every comment body into one line with a visible divider.
Result:
First comment from QA / Second comment: fixed in build 42Run on Jira Cloud on .
{{issue.summary.split(" ").join("-")}}Split the summary into words and join them with hyphens, as a start for a branch name or a slug.
Result:
Hello-World!Run on Jira Cloud on .
{{issue.labels.join(", ").toUpperCase()}}Chain a text function after join() to change the whole line at once.
Result:
CHECKOUT, DEMORun on Jira Cloud on .
{{issue.labels.join("")}}Use an empty separator to glue the items together.
Result:
checkoutdemoRun on Jira Cloud on .
Pitfalls
join()without a separator gives an empty string, not a default comma (checked on Jira Cloud, November 2026). Always pass the separator, even when it is a single space.- A list with no items joins to an empty string. A field that is empty on the work item, such as
issue.fixVersions.name, leaves the line blank, so add a caption only inside anifblock when the caption alone would look wrong. - On a list of comments, join() prints the comment bodies. Writing
.bodykeeps the intent explicit.
Related
- {{#list}}…{{/}} iteration
- split()
- first, last, get(), getFromEnd()
- toLowerCase() and toUpperCase()
- {{issue.comments}}