Passing information to javascript resource

I created a web-item which opens an AUI dialog. The javascript of the dialog is added with a web-resource. This is working as expected.
Now I would like to show some additional (custom) information about the page inside the dialog. Following your guidelines (, I thought it would be nice to add these information via fieldset as shown.

I tried to create a web-panel and a context-provider (which should provide the additional information), but there are no data about the current page (e.g. pageId) neither in the web-panels velocity nor in the context-provider available to load my additional page information.

Is there another way to pass data to my javascript-resource without mixing javascript with velocity?

Any help is appreciated!

1 answer

Hi @Theresa,

Can you please tell me how did you open and action page to a dialog in confluence plugin.



Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

35 views 1 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot