Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to retrieve the macroId when user opens the macro in edit mode? Edited

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?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

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...

82 views 0 3
Read article

Community Events

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

Events near you