Uploaded image for project: 'Atlassian Connect in Jira'
  1. ACJIRA-1207

sizeToParent and hideFooter does not work with web panels on Project Page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JavaScript API
    • Labels:
      None

      Description

      Web panel content on the Project Page takes most of the page, so the content is expected to fit the parent page. However, it is only possible to specify fixed height in pixels. That's not acceptable because the user expects the add-on to take full height.

      Also, there is no way to hide the footer.

      The relevant part of the descriptor:

      {
        "modules": {
          "webItems": [
            {
              "location": "jira.project.sidebar.plugins.navigation",
              "key": "connect-provided-link-to-panel",
              "url": "/projects/{project.key}?selectedItem=com.almworks.cloud-proto__connect-provided-link-to-panel",
              "context": "product",
              "name": {"value": "Structure"}
            }
          ],
          "webPanels": [
            {
              "key": "structure-project-board",
              "url": "/structure-project-board.html?pkey={project.key}",
              "location": "com.almworks.cloud-proto__connect-provided-link-to-panel",
              "name": {"value": "Structure"},
              "layout": {
                "width": "100%",
                "height": "100%"
              }
            }
          ]
        }
      }
      

      The element that includes all.js:

      <script src="${atlassianConnectAllJsUrl}" data-options="sizeToParent:true;hideFooter:true" type="text/javascript"></script>
      
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                istankiewicz Eve Stankiewicz
                Reporter:
                ibaltic Igor Baltiyskiy
              • Votes:
                22 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Who's Looking?