The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

About html macro to confluence (cloud version)

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Benjamin
Community Champion
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. 

 

 

青山 明
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
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 Champion
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. 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events