Smart Variables
Enhance your Templates by incorporating Smart Variables for Date and Reporter.
Β
Contents ππΌ
Overview
Smart Variables allow you to automatically populate dates, and user information into your Jira issues. Use them in text fields like Summary or Description or structured field types like Date Pickers and User Pickers to reduce manual work and keep your issues consistent πͺ
π Date Smart Variables
You can use the base variable now or reference any Custom Date Variable (e.g., Start Date) to calculate dynamic dates on the fly.
Base Syntax - now
Use {{now}} to capture the exact moment an issue is generated from a template.
Operation | Syntax | Description |
|---|---|---|
Days |
| Add/subtract calendar days |
Business Days |
| Add/subtract working days (MonβFri) |
Weeks |
| Add/subtract weeks |
Months |
| Add/subtract months |
π‘ PRO TIP: Combine multiple methods for precise dates.
For example: now.plusMonths(3).plusWeeks(1).minusDays(2)
Β
NEW Relative Dates from Date Variables
Instead of relying only on now, you can perform math on date variables selected during issue creation.
Set up a date field (e.g.,
Start date) to be filled in when the template is applied.Click "Use smart variable" in the field menu of another Date field or simply type it inside a Text field and add your math:
In a Date field (e.g., Due Date):
Start date.plusDays(10)In a Text field:
{{Start date.plusDays(10)}}
Example: If a user selects Sept 1 for Start Date, a Due Date configured with Start Date.plusDays(10) automatically sets to Sept 11.
Β
π€ Reporter Smart Variable
Use {{reporter}} to automatically insert the user who applies the template.
In User Picker fields (Assignee, custom fields): Click "Use smart variable" in the field menu and enter
reporter.In Text fields (Summary, Description): Simply type
{{reporter}}inline.