Calling the Quick Edit Plugin function create-linked-issue


#1

Hey Community,
At the moment i use the quick-create-issue form in my plugin.
var createCreateIssueForm = require(‘quick-edit/form/factory/create-linked-issue’);
createCreateIssueForm({
parentIssueId: id,
pid: getProjectId()
}).asDialog({
windowTitle : createKnowledgeElementText
}).show();
closeDialog();
};

This form has the problem that i can’t link the new issue with an already existing one at the creation.

My Question: Did somebody use the create-linked-issue form an can tell me how i use it the correct way? Is this form the one i am searching for or is there a better way?


#2

Here is a screenshot of the dialog we want to trigger from our JIRA plugin:

We know how to trigger the quick-edit-issue and the quick-create-issue dialogs. To use these dialogs, we included the following dependencies in our atlassian-plugin.xml:

<dependency>com.atlassian.jira.jira-quick-edit-plugin:quick-edit-issue</dependency>
<dependency>com.atlassian.jira.jira-quick-edit-plugin:quick-create-issue</dependency>

In Javascript, we use the following code to trigger the create-issue-dialog:

var createCreateIssueForm = require('quick-edit/form/factory/create-issue');
createCreateIssueForm({
        }).asDialog({
	windowTitle : createKnowledgeElementText
	}).show();
	closeDialog();

How can we use the create-linked-issue dialog?


#3

The question was answered here:

It is not easily possible to trigger the create-linked-issue. Further, it is not available on every side, but only in the issue view.

We constructed our own “create-and-link-dialog” and will stick with it: