Webpanel not visible after expanding it, in issue right context (old issue view)

Hi,

Web panel content is not visible after navigating to issue and expanding it.

Steps to reproduce
90% reproducible with simple atlassian-connect.json and index.html (see below).
Disable “New Jira issue view” in personal settings and follow the steps:

  1. Collapse “Text Right Content” clicking it to get “> Text Right Content”
  2. Press F5 to refresh the page
  3. Expand “Text Right Content” clicking it to get “\/ Text Right Content”
  4. “Text value” is not visible.

When repeating steps with expanded “Text Right Context” in step 1, everything works.
It also works fine in new issue view.

Is it a bug? or am I missing something?

Notes from debugging

When it works I see height set to 150, when it fails height is set to 0.

atlassian-connect.json

{
    "key": "test-right-context",
    "name": "Test Right Context",
    "baseUrl": "<url>",
    "authentication": {
        "type": "none"
    },
    "modules": {
        "webPanels": [
            {
                "key": "test-right-context-right",
                "location": "atl.jira.view.issue.right.context",
                "weight": 50,
                "name": {
                    "value": "Test Right Context"
                },
                "url": "/index.html"
            }
        ]
    }
}

index.html

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="https://unpkg.com/@atlaskit/css-reset@5.0.12/dist/bundle.css" />
    <script src="https://connect-cdn.atl-paas.net/all-debug.js" type="text/javascript"></script>
  </head>
  <body>
    <div>Text value</div>
  </body>
</html>

Hi,

I’m still stuck on it, is there something I could try?

Thanks.

Sharing link to video where after reloading page “Text value” is not visible (most of the time).
Note height 0 when it doesn’t work.

I tried with “ac-content” as recommended in docs [1], it fails about 30% of the time (less frequently than with original index.html).

[1] https://developer.atlassian.com/cloud/jira/platform/about-the-javascript-api/#resizing

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="https://unpkg.com/@atlaskit/css-reset@5.0.12/dist/bundle.css" />
    <script src="https://connect-cdn.atl-paas.net/all-debug.js" type="text/javascript"></script>
  </head>
  <body>
    <div class="ac-content">
      <div id="your-id-here">
        Text value
      </div>
    </div>
  </body>
</html>

Reproduced on ecosystem jira with “My reminders” and “Who’s Looking?” addons, exapnding addons showed no content.

I tried with this (I think unrelated) issue [ACJIRA-2092] - Ecosystem Jira

Bug raised for the issue: [JRACLOUD-74751] Web panel content is not visible after navigating to issue and expanding it - Create and track feature requests for Atlassian products.

1 Like

Hi @Andrzej,

Thanks for taking the time to investigate this. :slight_smile:

Regards,
Dugald