Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

How to create a Confluence template page  which will use dynamic parameters in post function

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

...

 

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. 

...

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

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