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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

787 views 23 12
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