Unable to add Dialog2 in vm template in jira

Hi all,

I am unable to use dialog2 in vm template . I am using jira 6.1.4

I am using


<web-resource key="dialog" name="AUI DIALOG">




function showDialog(){
// Hides the dialog
AJS.$("#dialog-close-button").click(function(e) {
<button id="dialog-show-button" class="aui-button aui-button-primary" onclick="showDialog();">Execute</button>
<section role="dialog" id="demo-dialog" class="aui-layer aui-dialog2 aui-dialog2-medium" aria-hidden="true">
<!-- Dialog header -->
<header class="aui-dialog2-header">
<!-- The dialog's title -->
<h1 class="aui-dialog2-header-main">Hello World</h1>
<!-- Actions to render to the left of the title -->
<div class="aui-dialog2-header-actions">
<button id="demo-header-action" class="aui-button">Header Action</button>
<!-- Actions to render on the right of the header -->
<div class="aui-dialog2-header-secondary">
<input id="demo-search" type="text" name="search">
<!-- Close icon -->
<a class="aui-dialog2-header-close">
<span class="aui-icon aui-icon-small aui-iconfont-close-dialog">Close</span>
<!-- Main dialog content -->
<div class="aui-dialog2-content">
<p>Hello World</p>
<!-- Dialog footer -->
<footer class="aui-dialog2-footer">
<!-- Actions to render on the right of the footer -->
<div class="aui-dialog2-footer-actions">
<button id="dialog-close-button" class="aui-button aui-button-link">Close</button>
<!-- Hint text is rendered on the left of the footer -->
<div class="aui-dialog2-footer-hint">this is a hint</div>

1 answer

I am using refrence of https://docs.atlassian.com/aui/5.4.1/docs/dialog2.html

Its urgent Can anybody help me


Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot