Open a popup from Atlassian addon connect

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you