How can I change & edit an addon's macro. for example some addon has a macro to show something or create a page or a template and I want to edit and customize a section or a part of that template or macro?
It depends on how the app is built and where it's doing the work you want to change.
A typical app that provides a Confluence macro is a .jar file you add to your server. .jar files in general are really zipped up blocks of files that are suitable for java to use as an executable set of instructions and supporting resources.
So. If what you want to change is being done by templates or resources, you could unzip the app, hack the text files and re-zip the file, then re-deploy it over the top of the old one in your server.
But if the changes you want are done in the compiled code, you are not going to be able to do that (without a pile of reverse engineering)
None of that can be recommended at any point, what you really should do is get the source code for the app and recompile it properly after making your changes in the source. If you hack someone else's app, you could be breaching the terms of usage, you're certainly going to leave yourself unsupported with that app, and if it's one of the core Confluence apps, your entire Confluence system goes out of support (in all cases, keep the original .jar file handy - you can become supported again by deleting your version and putting the original back)
Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events