-
Bug
-
Resolution: Fixed
-
Low
-
Minor
-
3
Created from https://ecosystem.atlassian.net/browse/ACJIRA-2613
Issue Summary
Our customers want to embed our Jira app’s UI into Confluence pages. To do so, they add an iframe using Confluence’s built-in iframe macro, pointing to the respective Jira URL (e.g. https://foo.atlassian.net/projects/FOO?selectedItem=com.atlassian.plugins.atlassian-connect-plugin:app.jxl).
In this setup, the Connect JavaScript API - while being loaded seemingly successfully - doesn’t work; the various callbacks, like window.AP.getCurrentUser, simply never resolve.
To verify, call
window.AP.getCurrentUser((x) => console.log(x));
from the Connect iframe's console. It works if Jira runs in its own browser window, but doesn’t resolve if Jira runs within the iframe.
There's suspicion that Connect gets confused about to the two nested iframes: First, Jira in Confluence, and then our app in Jira.
Steps to Reproduce
- Confluence’s built-in iframe macro, pointing to the respective Jira URL (e.g. https://foo.atlassian.net/projects/FOO?selectedItem=com.atlassian.plugins.atlassian-connect-plugin:app.jxl).
- Call from the Connect iframe's console:
window.AP.getCurrentUser((x) => console.log(x));
Expected Results
It resolves within Jira iframe.
Actual Results
It doesn’t resolve if Jira runs within the iframe.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Additionally it blocks important use cases for customers.
- is duplicated by
-
ECO-69 Connect JS API (all AP functions) do not work when opening Jira Cloud inside Bitbucket Cloud
-
- Closed
-
- relates to
-
ECOHELP-26923 Loading...
[ECO-6] JavaScript API doesn't work if Jira runs in iframe itself
Resolution | New: Fixed [ 1 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Closed [ 6 ] |
Remote Link | Original: This issue links to "ECOHELP-26923 (Ecosystem Jira)" [ 826806 ] | New: This issue links to "ECOHELP-26923 (Ecosystem JIRA)" [ 826806 ] |
Remote Link | New: This issue links to "ECOHELP-26923 (Ecosystem Jira)" [ 826806 ] |
Labels | Original: Javascript connect-add-on iframe | New: Javascript connect-add-on ecohelp iframe |
Component/s | Original: Forge - External API Authentication [ 72134 ] | |
Component/s | New: Connect - Frameworks [ 72154 ] |
Component/s | Original: Forge - External API Authentication [ 70855 ] | |
Component/s | New: Forge - External API Authentication [ 72134 ] | |
Key |
Original:
|
New:
|
Project | Original: Jira Cloud [ 18514 ] | New: Atlassian Ecosystem [ 22710 ] |
UIS | Original: 1 | New: 3 |
UIS | Original: 3 | New: 1 |
UIS | Original: 1 | New: 3 |