We are using following code to bring Jira's creation dialog. All the fields are working fine except "Sprint " field. It supposed to show a combo to choose but it is not showing anything to choose.
var issueForm = JIRA.Forms.createCreateIssueForm({pid:${projectId}});
var dialog = issueForm.asDialog({windowTitle: 'Create Issue'});
dialog.show();
Hi Subhajit,
I'm not sure of your use-case but you should consider using an Issue Collector instead of manually trying to trigger the creation screen. Jira generates the code necessary for a Collector to work properly and lets you embed the collector in other systems besides Jira.
Cheers,
Daniel
This does not fit into our use case. The scenario is to show issue creation dialog from a separate application. Jira does support JIRA.Forms.createCreateIssueForm. See the below community post.
This is a defect with Jira. Can you please tell me how to open a defect gainst Jira development team - Any specific url for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Eads this is what I got
It is a select field instead of input field and also it is hidden. I have only imported this in my code
$webResourceManager.requireResource("com.atlassian.jira.jira-quick-edit-plugin:quick-form")
Am I missing anything?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you clarify where you're trying to bring up this screen? The developer post you linked to is about triggering the Create screen in Jira itself. You mention "The scenario is to show issue creation dialog from a separate application". Is the "separate application" a plugin in Jira, or is it an entirely different application?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Eads Its very simple. We have written a GET API which any application can call and we send back the creation dialog as
var issueForm = JIRA.Forms.createCreateIssueForm({pid:${projectId}});
issueForm.bind('sessionComplete', function(evt,issues) {
## process issues
}
var dialog = issueForm.asDialog({windowTitle: 'Create Issue'});
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.