JIRA Incoming Email Handler Cannot be Created

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

When attempting to create an incoming mail handler, after selecting the mail server and specifying which folder JIRA should create issue from as well as the option on how to handler emails (Create new issues always, create new issue and update existing, e.t.c) when the user presses Next, they would have the continuous spinning icon without the expected pop-up to configure which project, issue type, e.t.c that the email handler is for.

The following appears in the browser Console error

Uncaught TypeError: Cannot read property 'get' of undefined
    at child.setSelectedId (batch.js?healthcheck-resources=true&is-server-instance=true&is-system-admin=true&locale=en-US&nps-a…:1435)
    at child.changeSelected (batch.js?healthcheck-resources=true&is-server-instance=true&is-system-admin=true&locale=en-US&nps-a…:1488)
    at HTMLSelectElement.dispatch (batch.js?locale=en-US:5012)
    at HTMLSelectElement.eventHandle (batch.js?locale=en-US:4621)
    at Object.trigger (batch.js?locale=en-US:4890)
    at HTMLSelectElement.<anonymous> (batch.js?locale=en-US:5549)
    at Function.each (batch.js?locale=en-US:2340)
    at init.each (batch.js?locale=en-US:1951)
    at init.trigger (batch.js?locale=en-US:5548)
    at child.setSelectedId (batch.js?healthcheck-resources=true&is-server-instance=true&is-system-admin=true&locale=en-US&nps-a…:1503)

When you click on the batch.js script link, it would redirect you to the following:

;;/* module-key = 'com.atlassian.jira.jira-mail-plugin:edit-handler-details-page', location = 'javascript/views/issue-types-view.js' */
define('jira/mail/views/issue-types-view', ['jira/mail/views/options-view', 'jquery'], function(OptionsView, jQuery) {
    return OptionsView.extend({
        setSelectedId: function(issueTypeId) {
            var selectedType = this.collection.find(function(type) {
                return type.get("id") == issueTypeId;
            });
            this.model.set({
                "issueTypeId": selectedType.get("id")
            });

診断

Diagnostic Steps

  • Query your JIRA instance database to ensure that the default issue type scheme has values in it:

    select * from optionconfiguration where fieldconfig = '10000';

原因

The problem is caused when your JIRA instance does not have any values associated with the default  issue type scheme.

回避策

  1. Jira をシャットダウンします。

    データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。

  2. Re-associate back the issue types to default issue type scheme:

    insert into optionconfiguration (id,fieldid,optionid,fieldconfig,sequence) values ('10306','issuetype','10000','10000','0');
    insert into optionconfiguration (id,fieldid,optionid,fieldconfig,sequence) values ('10307','issuetype','10001','10000','1');
    insert into optionconfiguration (id,fieldid,optionid,fieldconfig,sequence) values ('10308','issuetype','10002','10000','2');
    insert into optionconfiguration (id,fieldid,optionid,fieldconfig,sequence) values ('10304','issuetype','10003','10000','3');
    insert into optionconfiguration (id,fieldid,optionid,fieldconfig,sequence) values ('10305','issuetype','10004','10000','4');
  3. Jira を再起動します。

 

最終更新日 2017 年 5 月 17 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.