インシデントの優先度ごとに ITSM モバイルエージェント のカスタムアラートトーンを設定する
ITSM モバイルエージェントでカスタムアラートトーンを設定して、優先度の異なるインシデントを区別します。
始める前に
必要なロール:admin
手順
-
次のように移動する。 All (すべて) > システム通知 > プッシュメッセージコンテンツ.
または、プッシュ通知メッセージコンテンツ [sys_push_notif_msg_content] テーブルに移動することもできます。
- 必要なプッシュ通知メッセージコンテンツレコードを選択します。
-
次のスクリプトで プッシュメッセージ生成 フィールドを更新します。
// 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」を参照してください。 - [Update (更新)] を選択します。