Forums

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

Where can I add a new user macro?

Paula Cristina Vaz November 14, 2018

Hello.

I want to add a new user macro, but I cannot find the place to do it.

Can you help me?

2 answers

2 accepted

0 votes
Answer accepted
Bill Bailey
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.
November 14, 2018

My understanding is that you cannot have user macros in Confluence Cloud. You may be able to package the macro as a plugin and get around it that way.

Paula Cristina Vaz November 15, 2018

Thanks @Bill Bailey

How do I do that?

Bill Bailey
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.
November 15, 2018

Well it is a bit involved. But here are the very broad steps:

  1. Set up a server instance of Confluence (can be local on your machine) for testing.
  2. Develop and test your user macro on the test instance (installing as a normal user macro).
  3. Install the Atlassian SDK and create the plugin skeleton
  4. Insert the user macro code into a user-macro-module
  5. Compile the plugin

And voilá, you now have a user macro as a plugin and it can be installed as any other plugin. Of course, I left out a number of steps. But once you have the process down, it is rather simple (even I can do it!).

Packaging user macros this way makes them much easier to install, especially on multiple servers (or when you have a group of macros), and allows additional files to be installed, for example custom CSS.

Like Paula Cristina Vaz likes this
Paula Cristina Vaz November 16, 2018

Hi @Bill Bailey.

Thanks for the answer. 

We are using confluence in the cloud. 

0 votes
Answer accepted
Francesc_Arbó
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.
November 14, 2018

Hi @Paula Cristina Vaz,

I don't understand what you really need. Could you add some more information?

Paula Cristina Vaz November 14, 2018

Hello. 

I'm using confluence cloud and I need a macro to list spaces by category, but I cannot find the place to add the new macro. :-)

 

Where can I add a new macro to my confluence?

Francesc_Arbó
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.
November 14, 2018

Hi @Paula Cristina Vaz,

 

in order to have a list if spaces based on their categories you can use the Spaces List macro (here is the doc URL: https://confluence.atlassian.com/confcloud/spaces-list-macro-724765290.html?_ga=2.120841613.448570383.1542192279-1125479650.1525245948) and select the option related to category

Hope it works!

Paula Cristina Vaz November 14, 2018

Thanks for the information, but it does not work.

I would like to have a page with two panels: one with the list of team spaces and the other with the list of project spaces. 

Space list macro does not do the trick, because when you select teams in one panel, he updates the second panel. Is a very limited macro.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events