1
0
-1

以下を参考にJIRAのREST APIを使って課題を更新しようとしています。

とある課題を更新しようとしたところ、下記エラーが出力されて更新できませんでした。

Field '(フィールドID or フィールド名)' cannot be set. It is not on the appropriate screen, or unknown

何が原因だと考えられますでしょうか?

    Commentコメントを追加...

    1 回答

    1.  
      5
      4
      3

      更新対象のカスタムフィールドを画面に表示設定したら、エラーが消えて更新できたことがありました。参考になれば幸いです。

      1. Kengo Ohsaki

        なるほど!

        https://docs.atlassian.com/jira/REST/6.4.12/#d2e5348

        If a field is not configured to appear on the edit screen, then it will not be in the editmeta, and a field validation error will occur if it is submitted.

        更新対象のカスタムフィールドを編集画面に表示設定すればいいんですね!

        ドキュメントにも書いてありましたね…ありがとうございます。

      Commentコメントを追加...