Skip to content
Yamuno
Browse

Templates and Variables

The Template tab in the field settings, with a template that uses variables

Templates

Each field context can have a template, set on the Template tab of the field settings. New work items in that context start with it in the field. Click Use example for a starting point.

Variables

Write a variable in double braces and it is filled in when the field is shown:

Variable Shows
{{issue.key}}, {{issue.url}} The work item's key and link
{{issue.summary}}, {{issue.status}}, {{issue.priority}}, {{issue.assignee}}, {{issue.reporter}} Those fields
{{issue.Story Points}} or {{issue.customfield_10016}} Any field, by name or ID
{{issue.parent.summary}} A field of the parent
{{project.name}}, {{project.key}} The space
{{user}} The person viewing the work item
{{today}}, {{now}} The date, or the date and time, in the viewer's time zone

Nothing is stored: the field keeps the variable, so the value is always current. Values are read with the viewer's own Jira permissions, and a variable that can't be read stays visible as written. Variables inside code are not filled in, and \{{ keeps the braces as they are.

On Customer Service Management support sites, customers only see the summary, status, priority, type, space, dates, resolution and labels; other variables show blank.

Stuck on something this page does not cover? Ask the developers.