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.
#*
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
*#
## Note that not all Atlaskit design tokens (example: var(--ds-text, #ffffff)) work in static macros. Check that case by case
#set($result = $RequestManager.get("https://dummyjson.com/quotes/random"))
<blockquote style="border-left: 2px solid blue; width: 95%;">
<p>
$result.quote
</p>
<cite> $result.author</cite>
</blockquote>Display the creation date of the current Confluence page
Find images within page attachments. Handy for reusing files and updating them all at once.
Display and interact with an OpenAPI/Swagger specification directly in Confluence by rendering a fully featured Swagger UI from a provided JSON URL
Perform text searches within pages, blog posts, and attachments
Display a personalized greeting message for a logged-in user
Convert a specified amount of cryptocurrency to a fiat currency
Create dropdown menus in Confluence Cloud with predefined option sets and permission-based access controls
Improve default Confluence tables with sorting, filtering, pagination, and CSV export features
Create dropdown menus in Confluence Cloud with custom option sets, multiselect support, and permission-based access controls
Retrieve and display all page content properties in an AUI sortable table