How to show an edit issue dialog from my plugin?

I'd like to have a button "Edit Issue" which will show a standard issue editing dialog

1 answer

1 accepted

I've found the answer and would like to share it with the community.

 

First, the page should depend on

<dependency>com.atlassian.jira.jira-quick-edit-plugin:quick-edit-issue</dependency>

If you want to show this dialog from standard search page or view issue page, then this dependency has already been included.

In my case I have a custom page and my own web-resource with my button, so I've just added this dependency to the web-resource.

 

Second, need to know the ID of the issue. 

 

And finally, the code:

 JIRA.Forms.createEditIssueForm({issueId: issueId}).asDialog({
id: "my-custom-edit-dialog",
}).show();

 

Thank you, I was searching for that for weeks.

Where did you find that? Is there somewhere a documentation ;-)

Documentation? Heh, nope, there's very poor documentation.

I've just researched JIRA sources.

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 ...

2,782 views 11 18
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