Forums

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

Is it possible to change a macro name?

Pedro Pacheco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2023

I have a connect app for confluence cloud, I was wondering if it is possible to change a macro name (ac:name): 

 

<ac:structured-macro ac:name="macro-name" ac:schema-version="1" ac:macro-id="macro-id">
.............................
</ac:structured-macro>
I want the macros of the app A to be migrated to my app B. So the idea was to change the names of the macros from app A to the name of the macros from app B so they can be rendered when using app B. 

I didn't find any information about this being possible, has anyone ever attempted to do something similar or is this even possible?

1 answer

1 accepted

3 votes
Answer accepted
Nic Brough -Adaptavist-
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.
December 15, 2023

Welcome to the Atlassian Community!

Short answer - no.  Macro names are encoded by the app (plugin) that provides the macro.  You need to use the unique name of the macro to call it.

If however, you mean you want to use a different macro, say replacing my-macro-1 with bobs-macro-34 in all your content, then you do have some options.  They are all "search and replace" though - either by downloading the raw content and doing it with a text editor, or using a scripting app to do it.

Pedro Pacheco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 15, 2023

Thank you Nic, I will give it a shot!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events