Greetings all!
I’ve created a simple add-on that opens a dialog from a link in the operations-operations
menu - it works great. Next, I am trying open a dialog from a link in the admin_plugins_menu
. When I click on the link, I get a 404 (and no dialogs open). Are dialogs supported here? I haven’t got too far yet but I figured it would be handy to operate within a dialog so I could use the client API to store configuration properties in JIRA. Just supplying a url
property works fine. The documentation doesn’t indicate dialogs wouldn’t be supported here AFAICT:
The properties required for this location are the standard ones defined in the documentation for web sections and web items.
Here is my atlassian-connect.json
:
{
"name": "Hello World",
"description": "Atlassian Connect app",
"key": "com.vspr.ai",
"baseUrl": "https://changeme.ngrok.io",
"vendor": {
"name": "vspr.ai",
"url": "https://vspr.ai"
},
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"webItems": [{
"key": "hello-world-tools-item",
"location": "operations-operations",
"weight": 10,
"name": {
"value": "Hello World"
},
"target": {
"type": "dialogmodule",
"options": {
"key": "do-thing-dialog"
}
}
},
{
"key": "hello-world-section-link",
"location": "admin_plugins_menu/hello-world-menu-section",
"weight": 10,
"name": {
"value": "Settings"
},
"target": {
"type": "dialogmodule",
"options": {
"key": "hello-world-settings-dialog"
}
}
}
],
"webSections": [{
"key": "hello-world-menu-section",
"location": "admin_plugins_menu",
"name": {
"value": "Hello World"
}
}],
"dialogs": [{
"url": "/index.html",
"options": {
"height": "200px",
"width": "300px"
},
"key": "do-thing-dialog"
},
{
"url": "/index.html",
"options": {
"size": "fullscreen",
"header": {
"value": "Hello World Settings"
}
},
"key": "hello-world-settings-dialog"
}
]
}
}
Thanks in advance!