How to fetch Application link status through REST api ?
プラットフォームについて: 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 は除く
要約
This knowledge base article describes a scenario where user wants to get Application link status through REST api call.
環境
Jira Software 8.x, 9.x
診断
Following are few examples for fetching application link status. First REST operation is to get ID of application-link. With this ID we can fetch the working status of application-link as true or false.
例 1:
# Get application-link id.
❯ curl -s -u "user:password" https://jira.base.url/rest/applinks/3.0/applinks|jq '.[].id'
"85dceef5-feca-3983-943c-83b6d193b1d8"
# Use application-link id to get status
❯ curl -s -u "user:password" https://jira.base.url/rest/applinks/3.0/status/85dceef5-feca-3983-943c-83b6d193b1d8|jq .working
true例 2:
# Get application-link id.
❯ curl -s -u "user:password" http://jira.base.url/rest/applinks/3.0/applinks|jq '.[].id'
"85dceef5-feca-3983-943c-83b6d193b1d8"
# Use application-link id to get status
❯ curl -s -u "user:password" http://jira.base.url/rest/applinks/3.0/status/85dceef5-feca-3983-943c-83b6d193b1d8|jq .working
falseソリューション
Following REST uri, should be helpful to get status of application link. Check Diagnosis section for examples.
https://jira.base.url/rest/applinks/3.0/status/[app-link-id]この内容はお役に立ちましたか?