I need to find a way to call a standard "CreateSubTaskIssue.jspa" from my custom dialog.
my custom dialog is opened in popup using next js-code:
JIRA.Dialogs.customDialog = new JIRA.FormDialog({
id: "someid",
trigger: "a.my-trigger",
ajaxOptions: JIRA.Dialogs.getDefaultAjaxOptions,
onSuccessfulSubmit : function(){ },
issueMsg : 'msg'
});
web-item with <styleClass>my-trigger</styleClass> trigger
and velocity template placed in webwork as <view>.
Clicking on button at the top navigation panel opens my dialog where I choose project, parent issue and issue type ID-s that I want to pass into standard Create Subtask dialog.
I tried to do it by sending a POST-call as submit action of the form in my velocity template:
<form action="/jira/secure/CreateSubTaskIssue.jspa" method="post" class="aui unsectioned">
with parameters from few hidden inputs on the form.
Submitting my dialog opens the standard Create Subtask Issue Dialog, everything looks fine, but submitting this dialog by "Create Subtask" button does not work as I want - window stays gray (as background of popup) and then nothing happens, page says that "AJS is not defined" (F12). After refreshing the page I can see that subtask were successfully created, that means that functionally plugin works good/
My question: Is there any other way to show one popup dialog from another dialog in ?
Community moderators have prevented the ability to post new answers.
Hi there! Did you get some information about this? I'm trying to open the createSubtaskDialog from a screen different from the view issue one. It's is not working and I believe that is because I don't have a current issue to be used on the default dialog's velocity context. I appreciate any help :)
That's my solution:
JIRA.Forms
.createSubtaskForm({parentIssueId: 10100})
.asDialog({windowTitle: 'Create Subtask', id: 'create-subtask-dialog'})
.show();
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.