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

Add macro automatically to page on page creation event

Dar Kronenblum
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 Leaders.
March 30, 2017

Hi

I would like to add some macro to pages automatically on page creation.

I guess I should use the scriptrunner event handler but I didn't manage to add the macro object to the page

any ideas?

thanks

Dar

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Davin Studer
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 Leaders.
March 30, 2017

You could also edit the page decorator to include the macros there. It is in Confluence Admin -> Look and Feel -> Layouts. Page layout would be the one to edit. FYI, the macro won't show in the editor, but they will render when the page is loaded.

0 votes
Steffi Frank
Contributor
March 30, 2017

Hi Dar,

you should create a new template which includes all macros needed

Steffi

TAGS
AUG Leaders

Atlassian Community Events