I'm trying to set up a macro using atlassian connect (express). This macro requires a custom editor with some custom input parameters.
This works just fine for the preview which gets called with all the parameters in the url, but when loading my custom editor i cannot understand how to get a hold of the macro params. My first thought was that the editor url got called with these params in the query, but no. Should they be?
This page in the documentation: https://developer.atlassian.com/cloud/confluence/modules/dynamic-content-macro/
has an example where they use the Atlassian JS API and calls "getUrlParameter", but without the input params in the url, that doesnt help much.
So i am a little confused.
Perhaps a little late, but I ran into the same question and by trial and error I found out you can add them to the url yourself in atlassian-connect.json:
"url": "/path?space-key={space.key}&page-id={page.id}&labels-to-ignore={labels-to-ignore}"
Where labels-to-ignore is a custom parameter.
In my js code, I can reference it in an app.get route handler like so:
let labelsToIgnore = req.query['labels-to-ignore'];
Hello @Terje Røstum !
As I understand, you need some assistance with the development with a software solution for Confluence Cloud.
I would like to share with you the existence of our Sister Community, the Developer Community. You can check more topics and share your own inquiries here:
There you will share your questions and needs directly with a plethora of capable developers that work with our platform!
Let us hear from you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.