"Unknown fields" error on Create or Edit issue action in automation rule

お困りですか?

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

コミュニティに質問

プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。

要約

The automation rule might fail to update some fields when using the Create or Edit action. In Jira Service Management, an invalid project type can also be a possible cause.

Accessing the Audit log and Identifying the affected custom field

Go to the affected Automation rule and click on the Audit log.

Identify the rule execution in the audit log of the automation rule where the status should show "SOME ERRORS".

Click Show More to show the Action details of the executed rule. Review the block of operations to identify the field causing the errors. 

In the example below, the "Time tracking" field is the culprit.


Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -
 Time tracking (timetracking)

考えられる原因

シナリオ 1

  • The field doesn't exist on the Create Issue screen of the project Issue type.

シナリオ 2

  • Editing the issue doesn't exist on the Edit Issue screen of the project Issue type. 
  • The custom field is only applicable to certain context (whether issue type or project level).
    • As a result, the automation rule doesn't have access to update it, hence the error.

シナリオ 3

  • This error can also be thrown for fields where the data supplied is invalid to the REST API endpoint.  One example of this is trying to supply a JSON formatted value in a manner the REST API is not expecting.  You can think of automation for Jira as using the REST API for changes to issues.  
  • If the change can be made correctly via the REST API, then automation too should be able to make most of the same changes. 
  • Testing the supplied values/format being supplied to the specific field by making a REST API call to the create or edit endpoint can help to identify the source of the error. 

To restore Automation's functionality

シナリオ 1

  • Add the field that's failing to the Create Issue screen of the project's issue type.

シナリオ 2

  • Add the field that's failing to the Edit Issue screen of the project's issue type. In case some applicable contexts are applied to specific issue types or projects, add the applicable context for other issue types/projects where you expect automation to have action upon those.

シナリオ 3

  • If using JSON values for setting a field, confirm that you can set that specific field via the REST API.  Automation would need to use the same JSON formatting that a REST API call would use.

Helpful resources for configuring screens

最終更新日: 2024 年 12 月 9 日

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

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