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

AP.content.getContext() returns an empty object in dynamic content macro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Ecosystem
    • None

      Using the connect publish conditions to trigger a dialog, the dialog fetches the context using the AP.context.getContext() API when triggered. If this dialog is triggered after some time in the editor, the context object is missing its fields, this can break the functionality of an app if it requires the context of the page.

      To reproduce:

      1. Open the editor, call AP.context.getContext() (in app or through the browser console) and inspect the context, it should appear normal
      1. Wait 20 minutes
      1. Call AP.context.getContext() and inspect the context

      Expected behaviour:

      • The context object looks the same as the first call

      Actual behaviour

      • The context object is missing fields

              Unassigned Unassigned
              9e6ef5b5b664 Rodrigo Morette
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: