Using $ variables to create dynamic templates
This walkthrough builds one reply template and one signature with variables, then uses them on an issue. For every variable you can use, see the reference page, $ Variables to create dynamic templates.
Build the template
Section titled “Build the template”-
In your project’s sidebar, open Response Templates.
-
On the Templates tab, select Add a Project Template. You need to be a project admin to save a project template. Anyone can use Add a Personal Template instead.
-
In Name, enter
Request received. -
In Content, type
Hi, then type$rep. The variable list opens at the cursor. Press Enter to insert${reporter}.
-
Write the rest of the reply the same way. Type
$wherever you want a value from the issue:Hi ${reporter},Thanks for getting in touch. We've logged your request as ${issue_key}: "${summary}".It's now ${status}, with ${priority} priority. We'll update you here as soon as we know more. -
Select OK.
Add a signature
Section titled “Add a signature”-
Open the Signatures tab and select Add a Signature.
-
Name it, and enter:
${current_user_name}${project_name} team -
Select OK. Under Actions, select Toggle Active (the check icon) to make it your active signature. Turning one signature on turns the others off.
Use it on an issue
Section titled “Use it on an issue”- Open an issue in the project. In the Response Templates panel, select Insert A Template and choose Request received.
- The app fills in each variable from the issue and adds your active signature at the end.
- On a service project, choose Reply to customer or Add internal note. On other projects, use Comment. Read the text, change anything you need, and post it.
For request HELP-42, raised by Priya Shah and answered by Sam Lee in the IT Help project, the reply reads:
Hi Priya Shah,
Thanks for getting in touch. We've logged your request as HELP-42: "Laptop won't connect to VPN".
It's now Waiting for support, with High priority. We'll update you here as soon as we know more.
Sam LeeIT Help teamThings to know
Section titled “Things to know”${reporter}fills in the reporter’s full display name. There’s no variable for a first name on its own.- If a field is empty on the issue, its variable is left blank.
- A variable that matches no field stays exactly as typed, so a typo shows up in the reply. Read before you post.
- The signature is added to comments, notes and replies, but not to the Description tab.
- For a custom field, pick it by name from Insert Field ($ variables) above the editor. Its variable differs from site to site.
Next steps
Section titled “Next steps”- Copy ready-made replies that use these variables: JSM reply templates: 24 canned responses to copy.
- See which Jira fields make a reply feel personal: JSM reply variables.
- Manage more signatures: Managing your Signatures.