• 使用を開始する
  • 関連ドキュメント

Amazon EventBridge と統合する

この記事では、Jira Service Management Cloud の一部のお客様に段階的に展開されている、Jira Service Management でネイティブに利用できる新しいアラート機能を取り上げています。ご利用のサイトにはまだ表示されていないか、利用できない可能性があります。

Amazon EventBridge ロゴ

ルーティング ルールを設定して、データを送信する場所を決定して、すべてのデータ ソースにリアルタイムで反応するアプリ アーキテクチャを構築できます。Amazon EventBridge では、イベントの取り込みと配信、セキュリティ、承認、エラー処理を代行するため、イベント駆動型アプリを簡単に構築できます。

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

Jira Service Management の Amazon EventBridge 統合を使用して、Jira Service Management のアラート イベントを Amazon EventBridge に転送します。Jira Service Management で統合を作成すると、aws.partner/jsm.com/{{integrationId}} という名前のイベント ソースが自動で作成されます。

統合による機能

イベント ソースに添付されたルールに応じて、アラートイベントは SNS、SQS、Lambda、Kinesis、CloudWatch、SSM などのさまざまな AWS サービスに転送できます。

統合をセットアップする

Amazon EventBridge は発信型の統合です。設定は次の手順で行います。

  • Jira Service Management で Amazon EventBridge 統合を追加する

  • Amazon EventBridge で統合を設定する

Amazon EventBridge 統合を追加する

Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings (gear icon) > Products (under JIRA SETTINGS) > OPERATIONS, you need to be either on Premium or Enterprise.

統合をチームの運用ページから追加すると、そのチームが統合の所有者になります。つまり、Jira Service Management は、この統合を通じて受信したアラートをチームにのみ割り当てます。

Jira Service Management で Amazon EventBridge 統合を追加するには、次の手順に従います。

  1. チームの運用ページに移動します。

  2. 左側のナビゲーションパネルで、[Integrations (統合)] を選択して、次に [Add integration (統合を追加)] を選択します。検索を実行して「Amazon EventBridge」を選択します。

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

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

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

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

  7. 次のパラメーターの値を入力して、送信認証を設定します。

    • Amazon AWS アカウント ID: AWS アカウントを一意に識別する 12 桁の数字。

    • リージョン: パートナー イベント ソースを作成する必要がある AWS リージョン。

  8. 変更を保存します。

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

Amazon EventBridge で統合を設定する

Jira Service Management を通じて統合を作成すると、Amazon EventBridge でパートナー イベント ソースが作成されます。

  1. Go to AWS EventBridge partner event sources page and pick the newly created event source with the name aws.partner/opsgenie.com/{{integrationId}}, then click Associate with event bus and follow through setup dialog. After this step Jira Service Management partner event source setup is done.

  2. To consume events in the Jira Service Management partner event source, go to AWS EventBridge rule creation page, fill in your rule Jira Service Management and description (optional). To listen to Jira Service Management events, select Event pattern option in Define pattern section and select Pre-defined pattern by service option in Event matching pattern section, then select Service partners option in Service provider section and find the Atlassian - Opsgenie option in Service name section.

  3. In Select event bus section select Custom or partner event bus option and select the newly created Jira Service Management event source. In Select targets section configure target(s) you want to route Jira Service Management event payloads to, in this example we will route payloads to an AWS Lambda function. Optionally add tags to your rule, then click Create.

Amazon EventBridge イベント バスに送信されたイベント ペイロードの例

JSON

{ "version": "0", "id": "c5f44bbb-34de-133d-eaff-5f52ff5ad720", "detail-type": "Create", "source": "aws.partner/jsm.com/1b8db399-7dc4-4f40-85fa-0fde193085c9", "account": "123456789012", "time": "2019-12-04T13:05:06Z", "region": "us-west-2", "resources": [], "detail": { "alertId": "66d9ff87-b253-442c-9d4d-5c2c539f9a31-1575464706692", "message": "Sample alert message!", "tags": [ "tag1", "tag2" ], "tinyId": "318", "source": "sample.email@gmail.com", "entity": "entity1", "alias": "alias1", "createdAt": 1575464706692, "updatedAt": 1575464707610000000, "username": "sample.email@gmail.com", "userId": "d047b539-a9a8-4475-91f2-30b7fb25a474", "userFullName": "John Doe", "description": "Sample alert description.", "team": "Engineering Team A", "responders": [ { "id": "df01caee-345c-4f85-a94f-5b1a4cdfc7f8", "type": "team", "name": "Engineering Team A" } ], "oldTeams": [], "teams": [ "df01caee-345c-4f85-a94f-5b1a4cdfc7f8" ], "teamsForVisibility": [ "df01caee-345c-4f85-a94f-5b1a4cdfc7f8" ], "actions": [ "action1", "action2" ], "tag": [ "tag1", "tag2" ], "details": { "property1": "value1" }, "priority": "P3", "status": "open", "acknowledged": false } }

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

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