Get confluence page source HTML using scriptrunner

Hi

I configured some drop down list on the confluence page and I would like to get the selected items in a script macro.

I tried to use page.getBodyAsString() function in order to get the selected options but it seems like this data doesn't appear in the result string

I wonder if there is a way to get the raw HTML of the page in order to get the selected data

thanks

Dar

 

1 answer

0 votes
Ann Worley Atlassian Team May 23, 2017

You may view the XHTML storage format at the ellipsis on the top right "view storage format". Is this the raw data you are looking for?

Screen Shot 2017-05-23 at 11.30.05 AM.png

Thanks Ann!

I configured a drop dowm list macro in the page and the XHTML storage format don't show the selected item in this list (only the available options)

I wonder if there is a way to get this information 

thanks

Dar

 

Suggest an answer

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

Organizing your space just got easier - Page Tree Drag & Drop is here

Hi Community! I’m Elaine, Confluence Product Manager. You may have read my earlier post about page tree in space navigation sidebar. I'm excited to share another improvement that helps you organize ...

101 views 3 4
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you