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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

370 views 20 10
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