As far as I can tell web items are used for linking to URLs. How might you connect the click event of the web item to a dialog menu like the ones for Create Issue and Create Project? I have seen JavaScript used for this purpose, but I'm not sure how one attaches this js to the web item.
Hello,
You should add your java script on page loading and wait until your web item is on the page. After it you can define a click event for your item. You can have a look at a similar question:
But what JavaScript code do you write to have a create project dialog popup?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find an example here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But how do you connect the html and js to the plugin?
P.S. The link you provided is deprecated and the up to date one is here https://docs.atlassian.com/aui/7.7.3/docs/dialog2.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should use the web-resource tag in the atlassian-plugin.xml
https://developer.atlassian.com/server/framework/atlassian-sdk/adding-resources-to-your-project/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.