How can I create a dialog box from a link in More section for issues screen in Jira7 Edited


I am working on a jira 7 plug-in to create a new web item in the More section of the issues screen. Upon clicking the web item- a new dialog box should appear and prompt the user to enter some details in a form.

I am able to create the new item in More list using web-section and web-item. Now I want to create a dialog box upon the user click. I wish to use Dialog2 here. Can anyone point me to a tutorial or sample code? 

PS: I am new to jira plugin development!

Thanks in advance!

1 answer

1 accepted

1 vote
Accepted answer

To add some popup dialog you should:

1. Add menu item in some dropdown menu But do not put any link:

<web-item key="website_link" name="Company Web Site" section="some_section" weight="10">
        <label>My link</label>
        <link linkId="website_link"/>

2. Decide on which page will appear this menu with your link, to define proper "context".

3. Create new web-resource with proper context

4. Add javascript file to the web-resource with "click handlers" and "dialog open" functions. Somethong like this:

(function ($) {
$(document).ready(function () {
// step 1. put dialog HTML at the and of <body> element
// step 2. set click handler to your web-item
// step 3. call AJS.dialog2().show();

Thanks @Domenico ManzoIts working :)

@Domenico Manzo This is working in issues view, but not in the issues search view. Have you faced anything like this before? Question - 696522#M227625. Thanks

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,137 views 4 9
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