FREE TOOL · JIRA AUTOMATION

Jira smart values tester

Write the text of your comment, email or field with {{smart values}} and see what a flow would print on your work item, and why a value is empty. Nothing is sent.

The work item (JSON) and the time of the run

What it prints

PAY-31 "Refund fails" is due Mon 30 Nov,
5 days from now. Reviewer needed before Fri 27 Nov.
Assignee: nobody yet. Points with buffer: 6.
Versions: 4.2 and 4.3. Created at 15:40.

  • {{issue.created.format("HH:mm")}} prints the time in UTC. Add .convertToTimeZone("Europe/Berlin") with your zone first.
Smart valuePrints
{{issue.key}}PAY-31
{{issue.summary.left(12)}}Refund fails
{{issue.duedate.format("EEE dd MMM")}}Mon 30 Nov
{{now.toStartOfDay.diff(issue.duedate).days}}5
{{now.plusBusinessDays(2).format("EEE dd MMM")}}Fri 27 Nov
{{if(exists(issue.assignee), issue.assignee.displayName, "nobody yet")}}nobody yet
{{issue.Story Points}}5.0
{{issue.created.format("HH:mm")}}15:40

The one-minute way to your own work item

  1. Open https://your-site.atlassian.net/rest/api/2/issue/KEY-1?expand=names in a browser where you are signed in to Jira. Atlassian’s own page points to it.
  2. Copy the whole page and paste it under The work item (JSON).
  3. Type. The result follows every key.

Why a smart value is empty

What you seeWhyWrite
NothingThe name is wrong, or the field is empty: Jira shows no error for either{{if(exists(issue.Field), issue.Field, "none")}}
An id or a block of textIt is an object: a status, a person, a select list.name, .displayName, .value
A value from the wrong fieldTwo fields have the same name; Atlassian says to use the id{{issue.customfield_10001}}
The raw text with bracesA brace is missing, or the quotes are curly ones copied from a pageStraight quotes: "dd MMM"
The flow stops at a math sectionAn empty field leaves a hole in the expression{{#=}}{{if(exists(issue.Story Points), issue.Story Points, 0)}} * 2{{/}}
Yesterday, or an hour offDates are in UTC.convertToTimeZone("Europe/Berlin")

Fifteen examples in the documentation that Jira does not follow

Atlassian’s pages on text, dates and formatting show a result for each call, most on the summary “Hello World!”. On 25 November 2026 we ran them in a Log action on our Jira Cloud site, the text functions on a variable with that text:

Smart valueThe page saysOur flow printed
{{invalid reference|Hello world}}Hello worldnothing
{{issue.summary.charAt(12)}}Nullthe flow stopped with an error
{{issue.summary.match(".*(o).*")}}[o, o]o
{{issue.summary.lastIndexOf("wo")}}7-1 (the W is a capital)
{{issue.summary.lastIndexOf("ll")}}42
{{issue.summary.lastIndexOf("rl")}}98
{{issue.summary.indexOf("d!")}}1110
{{issue.summary.isAlpha()}}truefalse
{{issue.summary.isAlphanumeric()}}truefalse
{{issue.summary.equals("Hello world!")}}truefalse
{{issue.summary.capitalize()}}Hello world!Hello World!
{{issue.summary.reverse()}}!dlroW elloH!dlroW olleH
{{issue.summary.abbreviate(8)}}Hello Wo...Hello...
{{issue.summary.abbreviate(4)}}Hell...H...
{{now.shortDateTime}}11/1/79 6:23 AM11/25/26, 2:02 PM (with a comma)

The first row matters most: the default after a | printed nothing in all 17 places we tried, for unknown names and for empty fields. {{if(exists(issue.duedate), issue.duedate, "none")}} worked. We tried it in the Log action only; a comment or an email may differ.

Eight more results that surprise

Smart valueOur flow printed
{{issue.Story Points}} with 13 points13.0
{{issue.summary.length.divide(5)}} with 12 letters2, and 2 after .ceil too
{{#=}}-2^2{{/}}4
{{now.endOfMonth}} at 14:022026-11-30T14:02:26.7+0000, the time stays
{{now.diff(now.plusDays(5).toStartOfDay).days}}4, not 5
{{#=}} * 2{{/}}, an empty field in matherror: Unknown unary operator *
{{"2020 02 15".toDate("yyyy MM dd")}}nothing
{{issue.status}} and {{issue.assignee}}3 and an account id

Whole numbers such as a length, a list size or the seconds of time tracking are divided without the rest, so .divide(3600).ceil rounds down. Numbers of custom fields keep their decimals. To keep the rest, use {{#=}}{{issue.summary.length}} / 5{{/}}.

What it knows, and how it was checked

  • Fields by id or name, defaults, sections, #if with not, and, or, equals and exists, encoders, and the functions of Atlassian’s text, date, list and math pages. A function it does not know is named and prints nothing: a wrong value would be worse.
  • About 120 values printed by real flows on our Jira Cloud sites, on 5 and 25 November 2026, are tests of the tester: it has to give the same. The ten of 5 November:
Smart valueThe flow printed
{{issue.key}}PAY-31
{{issue.status.name}}Done
{{initiator.displayName}}Sophia Martinez
{{issue.duedate}}2026-11-12
{{issue.duedate.format("dd MMM")}}12 Nov
{{now.format("dd MMM yyyy")}}05 Nov 2026
{{now.plusBusinessDays(2).format("EEE dd MMM")}}Mon 09 Nov
{{now.plusBusinessDays(5).format("EEE dd MMM")}}Thu 12 Nov
{{issue.comments.size}}2
{{issue.created.format("HH:mm")}}19:05 (20:05 in Belgrade)
  • Not here: values that only exist during a run (lookupIssues, webhookData, createdIssue, changelog), number formats of other countries may differ in spaces, and regular expressions are JavaScript’s, not Java’s.

Reminders without a flow

Many of these texts are “due in 2 days” comments. Deadline Tracker sends due date reminders on its own and shows everything by due date on one board, and uses no automation steps. Free up to 10 users.

Next: eight rules with their step costs, and the automation steps calculator.

Frequently asked questions

How do I test smart values in Jira?

In Jira, build a flow with the Manual trigger and a Log action, run it from a work item and read the audit log; the Log action costs no step. Here you paste the work item once and see every change of your text at once, before you build the flow.

Why is my smart value empty?

The field is empty on that work item, the name is misspelled, or it is an object and you need a part of it: issue.priority.name, issue.Select field.value, issue.assignee.displayName. An unknown name prints nothing and no error. For another text write {{if(exists(issue.duedate), issue.duedate, "none")}}: the default after a | printed nothing in our flows.

Where do I get the JSON of a work item?

Open https://your-site.atlassian.net/rest/api/2/issue/KEY-1?expand=names in the browser where you are signed in, and copy the whole page. expand=names adds the display names, so {{issue.Story Points}} works besides {{issue.customfield_10016}}.

Why is the time one or two hours off?

Dates are in UTC until you convert them. {{issue.created.format("HH:mm")}} printed 19:05 for us when the clock in Belgrade said 20:05. Use {{issue.created.convertToTimeZone("Europe/Belgrade").format("HH:mm")}}.

What is the smart value for today plus two business days?

{{now.plusBusinessDays(2).format("yyyy-MM-dd")}}. On Thursday 5 November 2026 a real flow printed Monday 9 November for it. Business days are Monday to Friday; public holidays are not left out.

Is the work item sent anywhere?

No. The page may not open any connection (its security policy forbids it) and stores nothing. Still, remove what you do not need from the JSON: it holds names and descriptions.