Jira produces jQuery popup builder

Take a question about Jira Problem Collector.

For those who have Jira but have no idea about the problem collector - Administrator -> Projects -> AnyProject -> Collector (Left) -> Add Issue Collector. After all the configurations, you will get a js script that should be embedded in the html page. This js script has the ability to launch a Jira message collector popup.

I want to display a problem collector popup and add it using additional html tags. Basically, I would like to split the popup into two and display β€œregister a new problem” at the top of the window and all registered problems at the bottom of the window.

While I display a popup when loading a page (this script launches a popup window for the problem collector when loading a web page - jQuery (document) .ready (..)):

<html> <head> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script type="text/javascript" src="put_your_own_jira_issue_collector_link"></script> <script type="text/javascript"> jQuery.ajax({ url: "put_your_own_jira_issue_collector_link", type: "get", cache: true, dataType: "script" }); jQuery(document).ready(function () { window.ATL_JQ_PAGE_PROPS = { "triggerFunction": function (showCollectorDialog) { jQuery(document).ready(function () { showCollectorDialog(); }); } } }); </script> </head> <body> </body> </html> 

A popup window appears when you open a web page. Page structure:

 <html> <body> <div id="atlwdg-blanket" class="atlwdg-blanket"> <div id="atlwdg-container" class="atlwdg-popup atlwdg-box-shadow atlwdg-hidden"> <iframe id="atlwdg-frame"> <html class="chrome webkit"> <body id="atlScriptlet"> <div class="aui-dialog collector-dialog custom-collector"> <form id="jic-collector-form" class="aui "> ... 

then I tried to inject using jQuery but no luck. I could not enter directly into the popup. So I started to wonder if it can be entered when it is a cross-domain request or not. Or perhaps there is another way to accomplish this task.

Can anyone experience jQuery please help

PS one more detail - this page will be displayed in the WebView component in a different environment than any commercial browser.

Graphically: enter image description here

+8
jquery cross-domain jira
source share
1 answer

I have to admit that I am not up to speed with jira, but it seems to me that you are trying to write inside the iframe from the parent window.

Browsers such as chrome do not allow this, even from the same source.

Did you try to write anything else in the popup?

+2
source share

All Articles