Create Template Page with Parameters

Any page in Confluence can be a template page but the parameters should be written carefully.

Parameters can be used in double curly braces or dollar signs, as below: 

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 User and Issue API for all properties and methods. 

Likewise, any parameter which is used in a Jira post function parameter can be used: e.g. {{environment}}.

Template page content

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


To link a Confluence page and Jira issue, follow the below steps: 

  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.