How do I update macro parameters using Java

Is it possible within my Macro class, where the code to show my macro image stub we currently update the macro parameters using JS, is it possible to update the macro parameters before the macro is inserted onto the page using Java

Hi Adisa,

What your requirement looks like to me, is a Event Listener while the page is being saved. You might want to read those pages that explain how to do so:

https://developer.atlassian.com/server/confluence/event-listener-module/
https://developer.atlassian.com/server/confluence/writing-an-event-listener-plugin-module/
For the list of events: https://docs.atlassian.com/atlassian-confluence/6.6.0/?_ga=2.213059984.52899381.1550370868-1806340714.1549458865

Hope it helps,

Cheers,

Florian