Create template page with parameters

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

Parameters can be used in double curly-braces or dollar sign 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 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 Confluence page and JIRA issue, follow below steps: 

  1. Add any JIRA issue with JIRA macro 
  2. Edit Confluence page's source (You can use free app Confluence Source Editor) and change issue's key to {{issue.key}} 
  3. Click Apply.
  4. Once the page is created via this post function, the issue will have Confluence page mention automatically, also Confluence page will have JIRA link.

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