2017-03-29 14 views
0

잡히지 않은 참조 오류 : jira의 발행 대화 상자를 열려고 할 때마다 openCreateIssueDialog가 정의되지 않았습니다. 다음 코드 부분을 사용하고 있습니다. 다음에 표시된 것처럼Jira : openCreateIssueDialog가 정의되지 않았습니다.

AP.require('jira', function(jira){ 
    jira.openCreateIssueDialog(function(issues){ 
     alert(issues[0]['fields']['summary']); 
    } , { 
     pid: 10000, 
     issueType: 1 
    }); 
}); 

답변

0

는 시도 : AP.requireAP.define이 사용되지 않으며 제거됩니다

AP.jira.openCreateIssueDialog(function(issues){ 
    alert(issues[0]['fields']['summary']); 
}, { 
    pid: 10000, 
    issueType: 1, 
    fields : { 
    summary: "Hello World", 
    environment : "My environment", 
    priority : 2, 
    assignee: "tom", 
    reporter: "bob", 
    labels : ["Mylabel","MyOtherLabel"], 
    description : "My first Issue", 
    duedate : "11/Oct/16", 
    fixVersions : 10001, 
    versions : 10000, 
    components : "My component", 
    timetracking_originalestimate: "2w", 
    timetracking_remainingestimate: "3d", 
    worklog_activate: true, 
    worklog_timeLogged: "2" 
    } 
}); 

참고.

AP.require and AP.define are deprecated and will be removed after August 2017.

The available modules can now be called directly from AP, such as AP.request or AP.jira. No alternative will be provided for AP.define. See Migrate to Atlassian Connect JavaScript V5 for more information.

https://developer.atlassian.com/static/connect/docs/latest/concepts/javascript-api.html

다음 골드 피처 연결 문서에서