The deprecated dialog 1 modal window is able to target a defined web-panel for a Connect add on and display across the entire Jira window without issue.
In trying to implement a new Dialog2 modal and following the example laid out in the documentation, the dialog window shows within the add on iframe web panel and I am unable to figure out how to either have it shown across the entire window or target a web-panel as I did with the deprecated Dialog version.
Is there a way of doing this with the Dialog2 api?
Another solution is to use AP.dialog.create with a key that refers to modules in atlassian-connect.json.
Javascript:
AP.dialog.create({
"key": 'my-custom-dialog',
"chrome": false,
"size" : "large",
"header":{
"value":"My custom dialog"
}
});
atlassian-connect.json:
...
"webItems": [
{
"name": {
"value": "My custom dialog"
},
"key": "my-custom-dialog",
"url": "/my-custom-dialog-view",
"location": "none",
"context": "addon",
"target":{
"type":"dialog"
}
}
]
...
But unfortunately, it does not support queryparams or any kind of custom context nor does it have an on open event...
This is only a workable solution if you intend to open your app in a dialog from a button or link.
Then every main interaction with your app should happen inside the dialog's iframe.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Glib Briia No I ended up giving up and just going with the Dialog 1 modal since it works. *shrug*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.