さまざまなインシデント優先度のカスタムアラートトーンを ITSM モバイルエージェント に設定する

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:2分
  • ITSM モバイルエージェントでカスタムアラートトーンを設定して、優先度の異なるインシデントを区別します。

    始める前に

    必要なロール:admin

    手順

    1. 移動先 すべて > システム通知 > プッシュメッセージコンテンツ.
      または、プッシュ通知メッセージコンテンツ [sys_push_notif_msg_content] テーブルに移動することもできます。
    2. 必要なプッシュ通知メッセージコンテンツレコードを選択します。
    3. [ プッシュメッセージ生成 ] フィールドを次のスクリプトで更新します。
      // get the priority of current incident
      var currentIncPriority =  current.getValue("priority");
      // define an array to map priority with ringtone
      var customisedRingtones = [
            {
                  "priority": "1",
                  "ringtone": "default"
              },
              {
                  "priority": "2",
                  "ringtone": "default"
              },
              {
                  "priority": "3",
                  "ringtone": "default"
              },
              {
                  "priority": "4",
                  "ringtone": "default"
              },
              {
                  "priority": "5",
                  "ringtone": "default"
              }];
      //override the json["aps"]["sound"] param with the ringtone defined for current priority        
              if(customisedRingtones){
                  for(var i=0;i<customisedRingtones.length;i++){
                     if(customisedRingtones[i].priority && customisedRingtones[i].priority === currentIncPriority){
                     json["aps"]["sound"] = customisedRingtones[i].ringtone;
                      break;
                     }
                  }
              }
      注:
      着信音を目的のアラートトーン名に置き換えます。スクリプトの更新に使用できる着信音とアラートトーンのリストの詳細については、「 Configure sounds for push notifications」を参照してください。
    4. [更新] を選択します。