---
title: "Create template page with parameters"
canonical: "https://support.appfire.com/space/EI4J/11206791/Create%20template%20page%20with%20parameters"
format: markdown
---
> Macro (aura-html)

This guide explains how to create Confluence page templates that automatically populate information from linked Jira issues.

## Using parameters in templates

Confluence templates allow you to define reusable content with dynamic values. These values are inserted using parameters formatted in two ways:

- **Double Curly Braces **(`{{issue.key}}`): This is the recommended approach for better readability.
- **Dollar Signs **(`$issue.assignee`)

### Available parameters

|  |  |
| --- | --- |
| `assignee` | `issue.assignee or {{issue.assignee}}` |
| `reporter` | `{{issue.reporter}}` |
| `date` | `$issue.created` |
| `productName` | `$issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11100'))` |
| `price` | `$issue.getCustomFieldValue($customFieldManager.getCustomFieldObject('customfield_11102'))` |
| `displayName` | `$user.displayName` |

> ℹ️ <span style="color: #000000">Please see</span> the [User](https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/user/ApplicationUser.html) <span style="color: #000000">and</span> [Issue](https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/Issue.html)<span style="color: #000000"> API for all properties and methods. </span>

<span style="color: #000000">Likewise, any parameter that is used in a Jira post function parameter can be used. For example, </span>`{{environment}}`<span style="color: #000000">.</span>

This page is automatically created via Jira workflow by `{{user.displayName}}`.

| **Issue** | {{issue.key}} |
| --- | --- |
| **Summary** | {{issue.summary}} |
| **Description** | {{issue.description}} |
| **Author** | {{issue.reporter}} |
| **Environment** | {{environment}} |

## Linking a Confluence page and a Jira issue

1. <span style="color: #000000">Add any Jira issue with Jira macro.</span>
2. <span style="color: #000000">Edit the Confluence page's source (you can use this free app:</span> [Confluence Source Editor](https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview)) <span style="color: #000000">and change the issue's key to </span>`{{issue.key}}`.
3. <span style="color: #000000">Click </span><span style="color: #000000">**Apply**</span><span style="color: #000000">.</span>
4. <span style="color: #000000">Once the page is created via this post function, the issue will have the Confluence page mention automatically, and the Confluence page will have the Jira link.</span>

> ⚠️ The integration user should have permission to browse issues in order to see the link between Jira and Confluence.