Go to Settings > Integrations and Keys, click Add integration, and search for Confluence. Select the item and click Continue.
In the Configure Confluence dialog, specify a key name and your Confluence Base URL, and click Save.
In the Integrations list, where your key is now included, click Authenticate.
Follow the instructions in the dialog to get your API token.
Now that you've configured your integration, add one or more of the integration's actions to an automation, test the automation, and then add the automation to an incident type.