Skip to main content
Pull documentation from Confluence to provide the AI with better context for code reviews, helping it understand your architecture decisions and technical specifications.

Setup

Connect Confluence

  1. Navigate to integration settings.
  2. Click Configure on the Confluence integration card.
  3. If you already have a Jira connection, cubic enables Confluence access automatically. Otherwise, follow the OAuth flow to connect your Atlassian account.

Configure AI behavior

Toggle these options based on your workflow:
  • Use context when reviewing code — The AI reviewer reads linked Confluence pages to understand architecture and requirements before reviewing your code
  • Use context when writing PR descriptions — Generate descriptions that reference relevant documentation from linked Confluence pages
  • Automatically associate pages — cubic detects Confluence page URLs in your PR and links them without manual intervention

How it works

cubic finds Confluence pages by looking for page URLs in your PR description. The URL format looks like:
https://your-team.atlassian.net/wiki/spaces/SPACE/pages/123456/Page+Title
Add a Confluence page URL to your PR description and cubic automatically imports the page content for the AI reviewer. The AI uses this documentation context to write more informed reviews and check that your code aligns with documented architecture decisions.

Best practices

  • Link architecture decision records (ADRs) and design docs to PRs that implement those designs
  • Reference API specification pages when reviewing endpoint changes
  • Include onboarding or setup documentation for PRs that change developer workflows
  • Keep Confluence pages up to date so the AI reviewer works with accurate context