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:
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.
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events