# Coding error in AP.jira.openCreateIssueDialog function

**URL:** <https://community.developer.atlassian.com/t/coding-error-in-ap-jira-opencreateissuedialog-function/4463>\
**Category:** Jira Cloud\
**Tags:** javascript, dialog, bug, ac-js, jira-cloud\
**Created:** [May 29, 2017, 11:32am UTC](https://community.developer.atlassian.com/t/coding-error-in-ap-jira-opencreateissuedialog-function/4463 "2017-05-29T11:32:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.pinn](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/david.pinn/32/36134_2.png) [@david.pinn](https://community.developer.atlassian.com/u/david.pinn)\
**Post date:** [May 29, 2017, 11:32am UTC](https://community.developer.atlassian.com/t/coding-error-in-ap-jira-opencreateissuedialog-function/4463/1 "2017-05-29T11:32:58Z")

</div>

Continuing the discussion from [Invoke Create Issue dialog from my add-on](https://community.developer.atlassian.com/t/invoke-create-issue-dialog-from-my-add-on/411/5):

I believe there’s an error in the `AP.jira.openCreateIssueDialog` function, which results in a `ReferenceError` occurring at runtime.

![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/1/a/1a44e5e884b9b83441e593c90b3200fc6dff6517.png)

In `all-debug.js`, the error appears as a reference to an unknown function:

![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/c/1/c12b6fc85bb7a3acfb41273787f568cbda2a5c42.png)

In terms of user experience, the first invocation of the `AP.jira.openCreateIssueDialog` method does make the dialog appear, but if you cancel from that dialog and attempt to show it again, the dialog does not appear, and other JavaScript on the page also fails to run.

Can anybody else confirm the existence of this apparent bug?

---

<div class="post-metadata">

**Author:** ![mstaas](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/mstaas/32/35991_2.png) [@mstaas](https://community.developer.atlassian.com/u/mstaas)\
**Post date:** [May 30, 2017, 4:41am UTC](https://community.developer.atlassian.com/t/coding-error-in-ap-jira-opencreateissuedialog-function/4463/2 "2017-05-30T04:41:04Z")

</div>

Hi David,

I’ve created an issue in ACJS to track this: [[ACJS-632] - Ecosystem Jira](https://ecosystem.atlassian.net/browse/ACJS-632)

Regards,

Mike
