Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch all macros for a confluence cloud page?

Jyoti Chauhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2023

I tried to access REST API to get content for a page with/wiki/rest/api/content/{pageId}?expand=body.storage and in its body field, I can see macros are available but not all macros are assigned with macro-id or macro tag name like table, date macros does not come with a macro id in body value.

So I was looking if there is any rest end point or cql query with which we can fetch all the macros for a page or blog or comment etc. or is there any identification tag in a body value of a content that says that a particular field is a macro type?

2 answers

0 votes
Khuong Vu
Contributor
February 6, 2025
  1. Here is a partial solution.  I have a list of all Confluence macros that my organization was using in Confluence Server (not Confluence Cloud). 
    1. I use this list to see which macros are migrated to Confluence Cloud by making an API call like the quote block below.
  2. I mean, if others can add to this list, the list will grow; eventually the list can be large enough to be helpful for someone.
  3. NOTE: some of these macros are free (provided by Atlassian), and some are paid.
detailssummary, diary, display-metadata, easy-heading-free, excerpt, excerpt-include, expand, favpages, float, gdoclink, gdocument, gform, gpresentation, gspreadsheet, hideelements-macro, horizontal-nav-group, horizontal-nav-item, html, iconmacro, include, index, info, jira, label-management-tool, labels-on-this-page, listlabels, livesearch, lref-gdrive-file, metadata-overview, multimedia, note, page-labels, pagetree, pagetreesearch, panel, popular-labels, profile, profile-picture, recently-updated, recently-used-labels, redirect, related-labels, roadmap, rss, section, sharelinks-urlmacro, status, table-plus, tableenhance, tab-pane, tabs-group, tasks-report-macro, team-files, tip, toc, toc-zone, toggle-cloak, ui-button, ui-children, ui-children-cards, ui-expand, ui-tab, ui-tabs, ui-text-box, vertical-nav-group, vertical-nav-item, view-file, viewxls, warning, widget, 

https://myorganization.atlassian.net/wiki/rest/api/content/search?cql=macro in (float, "hideelements-macro")&limit=500

 

0 votes
Sanjen Bariki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 2, 2023

Hi @Jyoti Chauhan ,

 

Welcome to Atlassian Community!

In Confluence Cloud, there is no Inbuilt option to get all the list of confluence Macro.

you can directly raise a ticket with Atlassian team they can give you the list of Macro because they have the Full Confluence DB access.

 

Accept the Answer If it helps you

Regards,

Sanjen Bariki

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events