Hi there!
I’ve successfully created a dialog the following javascript:
AP.dialog.create({
key: 'ticket-form',
size: "fullscreen",
chrome: false,
customData: {
issueKey: issueKey
}
});
It shows the module with the key ‘ticket-form’ nicely in a dialog. The problem is that I seem to be forced to add the module to another location in JIRA, or else I won’t be able to show it in the dialog. So I’ve put it away in the admin_plugins_menu in the atlassian-connect.json:
"modules": {
"generalPages" : [{
"key": "ticket-form",
"url": "/tickettrack/form",
"location": "admin_plugins_menu/ivs-menu-section",
"name": {
"value": "Ticket form"
}
}],
"webPanels": [
{
"location": "atl.jira.view.issue.right.context",
"url": "/tickettrack/view",
"key": "whos-looking-issue-panel",
"name": {
"value": "Inventive Ticket"
},
"conditions": [
{
"condition": "has_issue_permission",
"params": {
"permission": "RESOLVE_ISSUE"
}
}
]
}
],
"webSections": [
{
"key": "ivs-menu-section",
"location": "admin_plugins_menu",
"name": {
"value": "Inventive Business Software"
}
}
],
"webItems": [
{
"key": "configure",
"location": "admin_plugins_menu/ivs-menu-section",
"url": "/configure",
"name": {
"value": "Settings"
}
}
]
}
But there must be a better way, right?
Regards,
Jeroen