Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence

Simple PlantUML for Confluence
Results will update as you type.
  • Getting started
    • Upgrade guide
  • Installation
  • Live Demo
  • Security and Privacy Statement
  • Support
  • Forge Migration & Support Status

    You‘re viewing this with anonymous access, so some content might be blocked.
    Teams
    , (opens new window)
    /
    Getting started
    Updated Dec 13, 2025

      Getting started

        Installation instructions

        Install the widget following installation instructions.

        Video overview

        Usage guide

        Start typing the name of the widget…

        … or select it from 'Select macro' pop up …

        Enter the diagram’s name and plain text description, see the preview and save after you’re satisfied with results.

        After pop up is closed diagram will appear on the page.

        Tip: In the diagram editor, you'll see a "Diagram source" section where you can choose how to store your source code. The default option keeps everything inline, but you can switch to using attachments for better organization.

        Diagram Source Storage Options

        storage_options.png

         

        When creating or editing a PlantUML diagram, you can choose how to store the diagram source code:

        Store source in macro (default)

        • Keep your diagram source code inline within the macro

        • Perfect for simple diagrams and quick edits

        • Source code is stored directly in the macro parameters

        Use existing attachment

        • Select an existing PlantUML source file (.puml, .plantuml, .uml, or .txt) from your page attachments

        • The latest version of the attachment is automatically loaded when editing

        • Ideal for reusing diagram sources across multiple macros or pages

        • Enables better version control through Confluence's attachment versioning

        Save as new attachment

        • Create a dedicated attachment file for your diagram source code

        • Enter a unique file name (e.g., architecture.puml)

        • Enables better organization, reuse, and collaboration

        • Leverages Confluence's built-in attachment versioning for change history

        You can change the storage option before saving the diagram. Once saved, the option is locked to maintain consistency.

        Diagram Images: All generated diagram images are stored as attachments to the page with full history of modifications.

        Diagram Source: You can choose to store the PlantUML source code inline within the macro (default) or as a separate page attachment for better organization and reuse.

        Validation and Error Handling

        The app provides real-time validation to help you create valid diagrams:

        • Diagram name validation: Ensures your diagram image name is valid and unique

        • Source attachment name validation: Checks for valid file names and prevents duplicates when creating new attachments

        • PlantUML syntax validation: Displays clear error messages if your PlantUML code contains syntax errors

        • Visual feedback: Validation status indicators show whether your input is valid, invalid, or being checked

        If you encounter a syntax error, the preview will display an error image with details about what needs to be corrected.

        Live demo

        See more examples on the https://stepashka.atlassian.net/wiki/pages/resumedraft.action?draftId=1384546305 page.

        Full language specification can be found on the PlantUML official website.

        {"serverDuration": 45, "requestCorrelationId": "aed17aedcda443bba92b1f1a1fb9b1ef"}