Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get macro input parameters

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: 

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.

2 answers

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={}&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'];

0 votes
Diego Atlassian Team Oct 19, 2020

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

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...

1,502 views 7 29
Read article

Community Events

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

Events near you