Triggering builds from Jira Automation using API calls is failing on Bamboo Data Center with error: No content to map to Object due to end of input
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
Triggering builds from Jira Automation using API calls is failing Bamboo with 400 HTTP error
環境
This issue was observed on Bambo 9.4.4 integrating with Jira Cloud but other Bamboo versions may be affected.
診断
After configuring the automation in Jira cloud and clicking on validate the below error was observed from Jira cloud, with error 400 Bad Request:
{ "errors": [ "No content to map to Object due to end of input" ], "fieldErrors": {} }原因
To resolve this issue, you need to ensure that the API call from Jira includes the correct payload, even if it is an empty JSON object.
ソリューション
In the payload section add an empty JSON object and then test the validation again
{}この内容はお役に立ちましたか?