Slide 11
Slide 11 text
②Incidentテーブルへ
INSするためのGlideRecordを作成する
Scripted REST APIs
Slack User管理テーブル
Slack Incident Mapping
テーブル
Incidentテーブルの項目との
Mapping例
Incidentの項目 Requestの項目 参照テーブルの項目
category trigger_word Slack Incident Mappingテーブル.category
caller user_id Slack User管理テーブル.ServiceNowのUser
short
description
text 冒頭に含まれる”<@qqqqqqqqq>”はmentionなので
Slack Incident Mappingテーブル.mention名で置換
SlackからのIncident Ticket起票連携概要
Slack
@hd
ServiceNow
①Slackの機能で
ServiceNowへ連携
Incident テーブル
outgoing webhooks
@wp
@legal
︙
{
"channel_name": ["servicenow_dev"],
"user_name": ["shingo-miyakoshi"],
"team_domain": ["cookpad"],
"team_id": ["Txxxxxxxxx"],
"enterprise_id": ["Eyyyyyyyy"],
"token": ["tttttttttttttttttttttttt"],
"user_id": ["Wzzzzzzzz"],
"trigger_word": ["<@qqqqqqqqq>"],
"service_id": ["nnnnnnnnnnnn"],
"text": ["<@qqqqqqqqq> test"],
"channel_id": ["Cwwwwwwww"],
"enterprise_name": ["Cookpad"],
"timestamp": ["1569306772.002000"]
}
request.queryParamsを
JSON.Stringifyしたもの
mention名 channel ID mention ID category workspace名 通知先channel
String String String Reference
(choice)
String String
Slack Incident Mappingテーブル項目一例
③IncidentテーブルへINSする