Make AC atl.footer web panel aware of the page and space

XMLWordPrintable

      From Thomas Alfred's question: https://answers.atlassian.com/questions/36116043/can-atlassian-connect-web-panels-be-aware-of-the-page-and-space

      Is it possible to allow a web panel to be aware of the space & page it is displayed on, much in the same way that dynamic content macros can have templated URLs to pass space.key, page.id etc through to the add-on.

      I'd really like something like this in the atlassian-connect.json file, but have checked that this doesn't work:

      "webPanels": [
          {
              "url": "/atl-footer.html?space_key={space.key}&page_id={page.id}",
              "location": "atl.footer",
              "weight": 500,
              "key": "my-atl-footer",
              "name": {
                  "value": "Main dialog area"
              }
          }
      ],
      

      In this use case, the webpanel is sending a tracking beacon to an analytics product. While it's possible to get the user key if required, it would be helpful to also send the space key & page id (where applicable) so that pages can be grouped by space key in the analytics product. Having pageId would be handy if this was needed later.

      atl.footer is a convenient place as it loads last and is often out of view, so the initial "Loading Acme Add-on" would not be too annoying when loading the page.

            Assignee:
            Unassigned
            Reporter:
            David Simpson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: