About html macro to confluence (cloud version)

青山 明
Contributor
May 28, 2024

We have introduced html macros to confluence (cloud version). I inserted the html macro into the page and wrote the following script statement there. This gets the value from the <meta name="ajs-remote-user-key" content="xxxxxxx"> statement, but it doesn't work. Note that this <meta name="ajs-remote-user-key" content="xxxxxxx"> is not written in the html macro. What could be the cause?

<script>
const key = document.getElementsByName('ajs-remote-user-key')[0].content;
alert(key);
</script>

1 answer

0 votes
Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 28, 2024

HI @青山 明 ,

 

Are you using a marketplace add-on? As far as I'm aware there isn't a HTML Macro built in Confluence Cloud. Depending which vendor you are using, you probably want to reach out to the vendor. Not all scripts scenarios are compatible. 

 

 

青山 明
Contributor
May 28, 2024

Yes, I am using the app.
Previously, in the server version of Confluence
The HTML macro existed by default.
Can't you expect any functions you've done before?

Benjamin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 29, 2024

No. There's a lot of apps that don't have the same exact function. Simply because the Cloud platform has a different design. 

Would recommend checking the app marketplace listing and see if they have a cloud parity which list to explain the differences. Otherwise, it probably best to reach out to the vendor to get that list of which functionality continues to be supported in the cloud. Also, they might have info on possibly having what you are looking for in the roadmap. 

Suggest an answer

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

Atlassian Community Events