You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
So I saw this question on how to get the macroId in the execute method of an action, which works fine for viewing a macro.
But when the user clicks to edit the macro, how can I access the macroId? That same question was asked there but never answered.
I'm developing a plugin and I can see that it is stored in the DOM img element as data-macro-id, next to more information of the macro as well as any custom data that the plugin stores in the macro, so it should in theory be possible to get it somehow.
I can access everything else, such as schema version, my custom data, etc, by overriding the opener function through
AJS.MacroBrowser.setMacroJsOverride('my-macro', {
opener: macroData => {
// macroData contains the schema version, the macro name as well as my custom data, everything is there EXCEPT for the macroId
}
});
So is there a way to get the macroId on editing a macro?
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events