我正在创建一个 Angular 7 应用程序,它利用 Jira 问题收集器将问题直接提交到各自的项目。
当我按照现在的方式构建应用程序时,什么也没有发生。当我直接将代码从方法“submitIssue”移动到“ngOnInIt”下时,会出现问题收集器对话框。代码片段应该添加到哪里?
任何帮助将不胜感激。谢谢你!
// Requires jQuery!
jQuery.ajax({
url: "https://<domain>.atlassian.net/s/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com",
type: "get",
cache: true,
dataType: "script"
});
window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requires that jQuery is available!
jQuery("#myCustomTrigger").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
}};
Run Code Online (Sandbox Code Playgroud)
这是我的数组,它在问题收集器组件上填充了不同项目和按钮的卡片。
export const PROJECTS: any = [
{
id: 1,
title: 'Project Title',
/** The url is taken directly from the issue collector section within the Jira project. Link below is modified
* for security purposes. */
url: 'https://<domain>.atlassian.net/s/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com' …Run Code Online (Sandbox Code Playgroud)