Jira Automation smart value
Date formats in Jira Automation: syntax and examples
Add a format name or format("pattern") to the end of a date smart value to turn the default ISO output into something people can read. The built-in names cover short, medium, long and full dates and times, plus the forms that Jira and JQL expect. Use format() when none of them fits.
Syntax
{{issue.created.jiraDate}}
{{issue.created.format("dd/MM/yyyy")}}
{{issue.created.as("dd MMM")}}
Arguments
| Argument | What it is | Required |
|---|---|---|
pattern | A Java date pattern in straight double quotes, used with format() or as() | yes |
Works on
- Fields: created, updated, duedate, resolutiondate, date picker fields, now
- Formats: jiraDate, jiraDateTime, jqlDate, jqlDateTime, shortDate, shortTime, shortDateTime, mediumDate, mediumTime, mediumDateTime, longDate, longTime, longDateTime, fullDate, fullTime, fullDateTime
- Returns: text
Examples
{{issue.created.shortDateTime}}Gives a compact date and time for a Slack message or a table cell.
Result:
11/29/26, 4:21 PMRun on Jira Cloud on .
{{issue.duedate.mediumDate}}Shows the due date as words, which avoids day and month mix-ups in e-mails.
Result:
Dec 15, 2026Run on Jira Cloud on .
{{issue.created.fullDate}}Adds the weekday, for a message such as the request that arrived on a Sunday.
Result:
Sunday, November 29, 2026Run on Jira Cloud on .
{{issue.created.jqlDateTime}}Produces the date and time in the form JQL accepts, to use in a JQL condition or search.
Result:
2026-11-29 16:06Run on Jira Cloud on .
{{issue.duedate.format("EEE d MMM")}}Prints a short weekday and day for a reminder line.
Result:
Tue 15 DecRun on Jira Cloud on .
{{issue.created.format("dd MMM yyyy 'at' HH:mm")}}Mixes a pattern with literal text; the literal word goes in single quotes inside the pattern.
Result:
29 Nov 2026 at 16:21Run on Jira Cloud on .
Where the documentation differs
This issue was updated at {{issue.updated.shortTime}}.Run on Jira Cloud, : the documentation says
This issue was updated at 2:40 AM. (with a normal space before AM), the actual result isThis issue was updated at 4:00 PM..
Pitfalls
- In
format()patterns,MMis the month andmmis the minute.format("dd/mm/yyyy")on a work item created at 16:21 prints 29/21/2026 (checked on Jira Cloud, November 2026). - The pattern has to sit in straight double quotes. Single quotes cause a runtime error, and a pattern with no quotes or with curly quotes renders empty (checked on Jira Cloud, November 2026).
- Time formats put a narrow no-break space (U+202F) before AM or PM, not a normal space. A text comparison against
4:21 PMtyped with a normal space will not match. - Names print in US English unless you add a locale, see the locale() entry. The default output is the long ISO form with a +0000 offset.
Questions and answers
Do the format names need parentheses?
No. The documentation says {{now.jiraDate}} and {{now.jiraDate()}} return the same result, and the version with parentheses also rendered correctly when checked.
What is the difference between format() and as()?
In the examples checked, as("dd MMM") printed 29 Nov, the same kind of result as format(). The documentation lists both without describing a difference.
Related
- {{now}}
- locale() and withLocale()
- setTimeZone() and convertToTimeZone()
- plusDays() / minusDays() and other units
- toDate (text to date)
- dayOfMonth, dayOfWeekName and other date attributes