by using the following js code I am able to open the create Issue dialog:
JIRA.Forms.createCreateIssueForm({parentIssueId:null,pid:null,issueType:null}).asDialog({ trigger: document.createElement("a"), id: "create-issue-dialog", windowTitle: AJS.I18n.getText('admin.issue.operations.create') }).show();
my questions are:
Cheers,
Florian
Community moderators have prevented the ability to post new answers.
Hey Florian,
Take a look at the QuickEditPlugin. I learned how to use it to open some dialogs and it seems to be possible to open the edit issue one too.
Here is how I open some of them:
For "create issue dialog":
JIRA.Forms .createCreateIssueForm({pid: projectId}) .asDialog({windowTitle: 'Create Issue'}) .show(); // OR var createCreateIssueForm = require('quick-edit/form/factory/create-issue'); createCreateIssueForm({pid: projectId}) .asDialog({windowTitle: 'Create Issue'}) .show();
For "create subtask" dialog:
JIRA.Forms .createSubtaskForm({parentIssueId: parentIssueId}) .asDialog({windowTitle: 'Create Subtask'}) .show(); // OR var createSubtaskForm = require('quick-edit/form/factory/create-subtask'); createSubtaskForm({parentIssueId: parentIssueId}) .asDialog({windowTitle: 'Create Issue'}) .show();
I hope it helps!
or is there any other official way to open standard dialogs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.