Open a popup from Atlassian addon connect

Brahim ESSALIH November 2, 2017

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

1 answer

0 votes
Todor Petrovski March 24, 2018

Hi Brahim,

you click on the button from "jira.project.sidebar.plugins.navigation" or from a different link your plugin ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events