Hi there,
I developped an Atlassian addon connect using nodeJs, I need to open a popup when I click on a link from my addon. This is a snippet of my descriptor.json
"modules": {
"webItems": [
{
"name": {
"value": "Creer un client"
},
"location": "jira.project.sidebar.plugins.navigation",
"weight": 200,
"context": "addon",
"key": "module-create-customer",
"target": {
"type": "dialogmodule",
"options": {
"key": "module-create-customer-dialog"
}
},
"conditions": [
{
"condition": "user_is_logged_in"
}
]
}
],
"dialogs": [
{
"key": "module-create-customer-dialog",
"name": {
"value": "Atlassian de merde"
},
"url": "/test-dialog",
"options": {
"size": "large",
"header": {
"value": "Creation d'un customer"
}
}
}
]
}
According to the documentation, it seems right. The problem is, when I click on my webItem, the dialog appears and immediatly, I'm redirected to a 404 not found page.
After a couple hours investigating, I found the issue. My webitem is a generated as a html link, so the Javascript behind open the dialog but the html is still interpreted and so the browser follows the link
Would you have any suggestions ?
Thank you in advance
Best regards
Brahim
Hi Brahim,
you click on the button from "jira.project.sidebar.plugins.navigation" or from a different link your plugin ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.