I've found the answer and would like to share it with the community.
First, the page should depend on
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:
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot