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:
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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