Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get page object within macro



I just started developing confluence plugins. One thing I am trying for practice purposes, is displaying all labels of the page the macro is running on in a table. In order to get the labels of a page I need the page object of the page. This is where I am stuck at the moment.

I figured out how to display content on a page with a macro, however I am not able to retrieve any information about the page, the macro is running on. 

1 answer

1 accepted

Hi Björn,

the page is part of the ConversionContext:

public String execute(Map<String, String> parameters, String body, ConversionContext context) {
ContentEntityObject page = context.getEntity();

However, for app development related questions you should probably check out the Developer Community instead. ;)

Best regards,

Hi Sven,


thanks for the answer. I'll post my question in the Developer Community next time. I'm still new to the Atlassian world :).


Greetings, Björn

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,583 views 7 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you