Set a rule to create a Confluence page
You can integrate Jira automation with your Confluence instance. This way, every time someone creates an issue or adds a comment to an issue, your Jira automation rule will create a Confluence page.
Before you set the rule in Jira automation, create a user in Confluence with the “Create page” permission and generate a personal access token. Learn more about using personal access tokens
To create a Confluence page from Jira automation:
- Make sure you have permission to create Confluence pages.
- Create a rule with the "Send web request" condition.
- Set the condition’s parameters as shown in the screenshot below.
- Instead of <Confluence_base_url> put your Confluence instance’s url.
- Instead of <Token> put the personal access token you generated in the Base64 format.
- In case an anonymous user creates a page, remove the Authorization header.
Set custom data as needed:
In the example above, the Confluence page title is set as the issue's key by using smart values. The syntax will be as shown below:
{ "type":"page", "title":"{{issue.key}}", "space":{"key":"TST"}, "body":{ "storage":{ "value":"<p>This is <br/> a new page</p>","representation": "storage" } } }
- You may also use the syntax below to create a new page as a child of another page with ID 456.
{ "type":"page", "title":"{{issue.key}}", "ancestors":[{"id":456}], "space":{"key":"TST"}, "body":{ "storage":{ "value":"<p>This is <br/> a new page</p>","representation": "storage" } } }
Enable the rule.
Last modified on Apr 14, 2025
Powered by Confluence and Scroll Viewport.