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

Live docs: forge context extension.macro.body does not include attrs.text for user mentions

XMLWordPrintable

      Issue Summary

      When using the Custom UI macro body in a forge macro on a live edit page, any @-mentions will not have the text attribute with the user name when being received from the forge context automatically.

      On a regular document (not live doc), the ADF entity of the mention will contain an attrs.text attribute with the display name of the mention.

      Steps to Reproduce

      1. Create an app with a forge body macro using custom ui. 
      2. Create a new live doc page
      3. Add the macro to the page, as the macro body add an @-mention
      4. Save the macro body (“Done editing”)
      5. In the custom ui of the macro, receive the forge context via await view.getContext()
      6. Log the context and look for the extension.macro.body attribute, which contains the macro body as ADF
      7. Find the @-mention node. Look for the text attribute of the attrs object of that node
      8. The text attribute will always be an empty string

      Expected Results

      Both regular and live page should return any @-mentions will not have the text attribute with the user name when being received from the forge context automatically.

      Actual Results

      Any @-mentions will not have the text attribute with the user name when being received from the forge context automatically.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              lwang4@atlassian.com Lulu Wang
              26a024868f5f Sherica Ocbania
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: