Jira Service Management の新しいナビゲーション

We’re in the process of rolling out these changes and the documentation may not match your experience. Bear with us while we update it to reflect the new changes. More about navigating the new Jira

Airbrake と統合する

Airbrake ロゴ

統合でできるようになること

Jira Service Management の Airbrake 統合を使用して、Airbrake インシデントを Jira Service Management に転送します。Jira Service Management は、オンコール スケジュールに基づいて通知すべき担当者を決定します。メール、テキスト メッセージ(SMS)、電話、iOS や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレートします。

統合による機能

Airbrake でエラー(インシデント)がキャプチャされると、Jira Service Management でアラートが作成されます。

統合をセットアップする

Airbrake は API ベースの統合です。設定は次の手順で行います。

  • Jira Service ManagementAirbrake 統合を追加する

  • Airbrake で統合を設定する

Airbrake 統合を追加する

The following capabilities are available in Jira Service Management Premium and Enterprise:

  • 双方向の統合

  • Outgoing integrations at the team level

  • Integrations at a site level through Settings (icon) > Products (under Jira settings) > Operations

To access Jira Service Management Premium features, you must subscribe to a Service Collection Premium or Enterprise plan.

Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.

 

Jira Service ManagementAirbrake 統合を追加するには、次の手順を実行します。

  1. Next to Operations in the sidebar, select More actions (), then General configuration.

  2. Select Integrations and then Add integration.

  3. Airbrake」を検索して、選択します。

  4. 次の画面で、統合の名前を入力します。

  5. オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。

  6. [Continue] を選択します。
    この時点で、統合が保存されます。

  7. [統合を設定する手順] セクションを展開して、API URL をコピーします。
    この URL は、後ほど Airbrake で統合を設定する際に使用します。

  8. [統合をオンにする] を選択します。
    統合のために作成したルールは、統合をオンにした場合にのみ機能します。

Airbrake の統合を設定する

AirbrakeJira Service Management の統合を設定するには、次の手順を実行します。

  1. Airbrake で、プロジェクト ページから [統合] に移動します。

  2. [Webhook] を選択します。

  3. 先ほどコピーした Webhook URL を [Webhook URL] に貼り付けます。

  4. [保存] を選択します。

アラート プロパティは、Jira Service Management の「統合の設定」ページで設定できます。

Airbrake からの Webhook メッセージの例

JSON

{ "error": { "id": 37463546, "error_message": "RuntimeError: You threw an exception for testing", "error_class": "RuntimeError", "file": "[PROJECT_ROOT]/app/controllers/pages_controller.rb", "line_number": 35, "project": { "id": 1055, "name": "AirbrakeProject" }, "last_notice": { "id": 4505303522, "request_method": "metot", "request_url": "http://airbrake.io:445/pages/exception_test", "backtrace": [ "[PROJECT_ROOT]/app/controllers/pages_controller.rb:35:in `exception_tester'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:19:in `_call'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:11:in `call_without_newrelic'" ] }, "environment": "production", "first_occurred_at": "2012-02-23T22:03:03Z", "last_occurred_at": "2012-03-21T08:37:15Z", "times_occurred": 118 } }

Jira Service Management ではペイロードは次のように解析されます。

{ "error_id": 37463546, "error_message": "RuntimeError: You threw an exception for testing", "file": "[PROJECT_ROOT]/app/controllers/pages_controller.rb", "line_number": 35, "project_id": 1055, "project_name": "AirbrakeProject", "environment": "production", "first_occurred_at": "2012-02-23T22:03:03Z", "last_occurred_at": "2012-03-21T08:37:15Z", "times_occurred": 118, "last_notice_request_method": "metot", "last_notice_request_url": "http://airbrake.io:445/pages/exception_test", "last_notice_backtrace": [ "[PROJECT_ROOT]/app/controllers/pages_controller.rb:35:in `exception_tester'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:19:in `_call'", "[PROJECT_ROOT]/app/middleware/conditional_heroku_nav.rb:11:in `call_without_newrelic'" ] }

 

さらにヘルプが必要ですか?

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