Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a Scriptrunner Macro to all pages header?

Klaus Foerschl
Contributor
July 27, 2023

Hello.
Confluence offers editing sidebar, header and footer for all pages.

By {macro-name} it is possible to insert a "regular" macro to any page.

Now I created a new macro with Adaptavist Scriptrunner.
The macro, let's say is defined like this:

Key: my-macro
Name: My Macro
Description: My cool macro
Body type: None
Output type: Block

If i now put into the header field: {my-macro}
at any page's header it shows: Unknown macro: {my-macro}

I tried to make use of the macro-Id, as one can see, e.g. by the Source Editor.
e.g. ac:macro-id="844594bb-d486-46ad-a938-a1a4e7ed63b9" ac:name="classification-icon"

So, i put into the header definition: {844594bb-d486-46ad-a938-a1a4e7ed63b9} with the same result -> unknown macro

Any hint, how to make this working?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.17.5
TAGS
AUG Leaders

Atlassian Community Events