Jira's create issue modal is not working as expected using AP.jira.openCreateIssueDialog

When we click create button in header and try to create an issue in a project with view permission, throws error on opening modal itself as mentioned below.


But when we open create issue dialog using AP.jira.openCreateIssueDialog - it is allowing user to do create without UI error. but on submission it is returning irrelevant error as mentioned below.

How to achieve the same as default create issue dialog with header create button click?