Jira の自動化レポート「編集中に不明なフィールドが設定されました。プロジェクト/タイプで利用できない可能性があります」
プラットフォームについて: Data Center のみ。 - この記事は、 Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
Jira の自動化プラグインを使用して自動化ルールを実行すると、A4J が「Some Errors (一部のエラー)」と次の説明でルールが完了したと報告するという問題が発生することがあります。
「課題に対して編集するフィールドやフィールド値がない (フィールド値がそのプロジェクトに存在しない場合を含む):」
「編集中の不明なフィールド セット。プロジェクト/タイプで利用できない場合があります。カスタム フィールド設定を確認してください。フィールドは無視されました -」
アプリケーション ログには、次の情報も記録されます。
atlassian-jira.log
1
2022-02-04 15:08:45,931-0300 http-nio-80-exec-5 WARN sysadmin 908x2412x1 ca09my 0:0:0:0:0:0:0:1 /rest/cb-automation/latest/project/GLOBAL/rule/1/execute [c.c.a.r.jira.common.IssueFieldsBuilderImpl] Unable to set fields: TestCustomField (customfield_10300). Adding some debugging logs. Available fields:
環境
Jira Data Center on any version from 9.0.0
診断
上記の原因のどれがここの原因であるかを突き止めるには、次の手順に従います。
根本原因 1 の診断
フィールドと値が適切に設定されているかどうかを確認するには、次の手順に従います。
Jira で、[Jira 管理] (歯車アイコン) > [課題] > [カスタム フィールド] に移動します。
検索によって影響を受けるフィールドを見つけます。
[アクション] メニュー (...) で [設定] を選択します。
このページの内容:
影響を受けるプロジェクトに設定されたカスタム フィールド コンテキスト、または「グローバル コンテキスト」を持つカスタム フィールド コンテキストがあることを確認します。
自動化で使用される課題タイプが適切なフィールド コンテキストで利用できるかどうか、または「グローバル コンテキスト」でも設定されているかどうかを確認します。
選択しようとしている値が適切なコンテキストで利用できるかどうかを確認します (これは、事前設定された値のあるフィールドを使用している場合にのみ適用されます)。
根本原因 2 の診断
カスタム フィールドとその値が適切に設定されていることを確認しても自動化の使用時にエラーが表示される場合は、影響を受ける自動化ルールのアクターに権限ヘルパーツールによる更新を実行するために十分な権限がない可能性があることをご確認ください。
影響を受ける課題にアクセスします。
課題コンテキストの [管理者] ドロップダウン メニューをクリックします。
「権限ヘルパー」を選択します。
フォームに次のとおり入力します。
ユーザー :<Actor for your Rule>
権限:「課題の編集」
[送信]をクリックします。
Diagnosis for Root Cause 3
As explained in Workflow Properties, properties can be added to specific statuses of the workflow to prevent users from editing the issue.
この根本原因が該当するかを確認する方法
Take note of the workflow status of the Jira issue that the rule failed to edit
Edit the workflow associated to this issue and switch to the diagram view
Click on the status and check it's properties
If you see property keys related to issue editing, such as jira.permission.edit.user or jira.permission.edit.denied as illustrated below, then this root cause is relevant:


原因
Root Cause 1 - Field/value not available
このエラー メッセージが示すように、この課題に最も可能性の高い原因は、編集しようとしている フィールド または入力しようとしている 値 のどちらかが、課題が属する プロジェクトに利用できないことです。
Root Cause 2 - Lack of permissions due to the Project Permission Scheme
Another possible cause is the fact that the Actor for the affected automation rule does not have permission to edit the affected issue due to the Permission Scheme associated to the project.
Root Cause 3 - Lack of permissions due to properties added to specific statuses in the workflow configuration
Another possible cause is the fact that the Actor for the affected automation rule does not have permission to edit the affected issue due to some properties used in the Workflow configuration which are preventing all of some users from editing issues that are in a specific status.
ソリューション
Adjust the field/permissions/workflow settings as per the Diagnostics section, in order to ensure that the field and values are available for the project you want to use them on and that the rule actor has the necessary permissions to edit the issue.
必要なステップに関する追加のガイダンスについては、次をご参照ください。
この内容はお役に立ちましたか?