JIRA connect plugin: JavaScript access parent page object

Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2014

JIRA on demand plugin is loaded into the iframe and since it's loaded from domain that differs from parent JIRA domain, I can not access the DOM parent object from the plugin:

parent.document.body.scrollTop

Is there any way to access the scroll positio of the parent window? I really need this to position the dialogs launched from the plugin.

1 answer

1 accepted

1 vote
Answer accepted
Daniel Wester
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2014
You can't access the parent window. You're explicitly sandboxed. How are you launching the dialog? Are you using AP.dialog?
Volodymyr Krupach May 18, 2014

I am using AUI dailog: https://docs.atlassian.com/aui/latest/docs/dialog.html

Is the AP.dialog centered inside parent page viewable area?

Thank you Danial!

Suggest an answer

Log in or Sign up to answer