Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA.Forms.createCreateIssueForm is not showing combo box for sprint

Subhajit Bhuiya September 25, 2018

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();

 

 Issue.png

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 27, 2018

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

Subhajit Bhuiya October 1, 2018

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.

 

https://community.developer.atlassian.com/t/how-to-open-create-issue-dialog-with-callback-after-issues-have-been-created/3083

 

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?

Subhajit Bhuiya October 11, 2018

@Daniel Eads this is what I got

 

jira.png

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?

Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 12, 2018

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?

Subhajit Bhuiya October 12, 2018

@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();

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events