Create template page with parameters

This page is about Easy Integrations for Jira DC. Using Jira Cloud? Click the Cloud button above.

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

Please see the User and Issue API for all properties and methods. 

Likewise, any parameter that is used in a Jira post function parameter can be used. For example, {{environment}}.

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. Add any Jira issue with Jira macro.

  2. Edit the Confluence page's source (you can use this free app: Confluence Source Editor) and change the issue's key to {{issue.key}}.

  3. Click Apply.

  4. 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.

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