Stand with Ukraine 🇺🇦

Random Quote — Confluence Cloud Macro

external-content

The macro retrieves a random quote from an external API and displays it in a styled blockquote format. It dynamically fetches and formats the quote and author’s name for visual appeal. The macro is suitable for adding engaging content to Confluence pages, and users can customize its appearance for better alignment with page styles.

Try for free

Template

#*
Random quote in JSON format from dummyjson.com site
'request' object has headers[], status, and body properties
JSON in response supports .dot notation
HTML supports Atlassian AUI: https://aui.atlassian.com/aui/latest/docs/typography.html
*#

#set($result = $RequestManager.get("https://dummyjson.com/quotes/random"))

<blockquote style="border-left: 2px solid #0052CC; background-color: #F7F8F9; width: 100%;">
    <p>
        $result.quote
    </p>
    <cite> $result.author</cite>
</blockquote>