Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-71649

Rich text macro data is not retrievable when another macro is embedded

    XMLWordPrintable

Details

    Description

      Issue Summary

      Embedding a macro within a rich text macro's body causes AP.confluence.getMacroBody() not to invokes the callback passes to it.

      Steps to Reproduce

      1. Visit any Confluence page and start editing it.
      2. Insert Macro A where it is defined as per the specifications below.
      3. Insert another macro such as the Jira macro within the body of Macro A and enter a search such as "assignee = currentUser()" then save it.
      4. Click on Macro A, open its editor and observe the rendered macro body data.
      5. Open the browser's dev tools and enter AP.confluence.getMacroData(console.log).

      Macro A specifications:

      • Important descriptor aspects: {"bodyType": "rich-text", "outputType": "block", editor: customEditorUrl}
      • The macro's custom editor calls AP.confluence.getMacroBody() during initialisation and renders the result.

      Expected Results

      At step 5, the console.log() function is called with the macro data.

      Actual Results

      At step 5, the console.log() function is not called with the macro data.

      Workaround

      None

      Attachments

        Issue Links

          Activity

            People

              rnabi rifat
              dmorrow@atlassian.com Dugald Morrow
              Votes:
              23 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: