Publish Jira data in Confluence pages
Context
As a Jira administrator, you want to create a Confluence page that contains relevant information from a Jira issue. Thanks to Elements Publish to Confluence, it is possible to retrieve data from Jira issues and insert it in Confluence pages.
Tutorial
In this example, we want to create a Confluence page from a Jira issue SUP-1, which contains crucial information in its Description and Environment fields.
This guide explains how to extract the values from these fields and inject them in the Confluence page. We will also insert the Summary of the issue in the Confluence page title.
Prerequisites
A recipe called "Add to Knowledge Base" has been created and activated.
This recipe is configured to create pages in a specific Confluence space, with a specific parent page.
Configuration steps
1 - As a Jira administrator, go to the "Elements Publish to Confluence" administration and click on Recipes in the navigation bar.
2 - In the Recipes listing page, select "Add to Knowledge Base" in the Active Recipes list.
3 - In the Recipe configuration page, click on the Content tab.
4 - In the "Created page" section, we will use the Page title text field to define which title will be used for the page created by the recipe.
First we will start the page title with the prefix "Created from : ".
![](../__attachments/10967646526/created-from-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
5 - Click on the Insert button to select the value to extract from the issue.
![](../__attachments/10967646526/insert-value-from-issue-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
6 - In the pop-up, use the select box to select the "Summary" field, and click on Insert.
![](../__attachments/10967646526/insert-summary-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
The Summary is then added to the page title as the template ${source.summary} :
![](../__attachments/10967646526/inserted-summary-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
This template will be replaced by the actual value of the Summary when the page is created.
5 - Use the Page content text area to add the Description and Environment fields to the page created by the recipe. This is done by clicking on the Insert button of the Page content field, just like at the previous steps.
![](../__attachments/10967646526/description-and-environment-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
The Description and Environment are added to the page as templates, which will be replaced by their actual values when the page is created :
![](../__attachments/10967646526/templated-values-publish-to-confluence.png?inst-v=9fdb14ed-4bc9-4150-9682-af9fdd6c0846)
6 - Click on the Save button.
Result
With this setting, when the "Add to Knowledge Base" recipe is triggered from SUP-1, the page will be created with values from the issues : the Summary will be part of the page title, and the Description and Environment values will be included in the page content.
•••
New to Elements Publish?
If this tutorial has stirred your imagination, why not give it a try?
• Try Elements Publish for free •