質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,52 +34,6 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
function sendSlack(slackText) {
|
38
|
-
|
39
|
-
var webHookUrl = "********";
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
var jsonData =
|
44
|
-
|
45
|
-
{
|
46
|
-
|
47
|
-
"channel": "#○○", // 通知したいチャンネル
|
48
|
-
|
49
|
-
"text" : slackText,
|
50
|
-
|
51
|
-
"link_names" : 1,
|
52
|
-
|
53
|
-
"username" : "TP_Q&A"
|
54
|
-
|
55
|
-
};
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
var payload = JSON.stringify(jsonData);
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
var options =
|
64
|
-
|
65
|
-
{
|
66
|
-
|
67
|
-
"method" : "post",
|
68
|
-
|
69
|
-
"contentType" : "application/json",
|
70
|
-
|
71
|
-
"payload" : payload,
|
72
|
-
|
73
|
-
};
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
// リクエスト
|
78
|
-
|
79
|
-
UrlFetchApp.fetch(webHookUrl, options);
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
37
|
|
84
38
|
|
85
39
|
```
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,44 +31,6 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
```ここに言語名を入力
|
34
|
-
|
35
|
-
どこに不具合が出ているかもわからず、作ったコードを全文貼らせて頂きます。
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
function myFunction() {
|
40
|
-
|
41
|
-
var ss = SpreadsheetApp.openById('******');
|
42
|
-
|
43
|
-
var data = ss.getDataRange().getValues();
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet(); // スプレッドシート
|
48
|
-
|
49
|
-
var activeSheet = activeSpreadsheet.getActiveSheet(); // アクティブシート
|
50
|
-
|
51
|
-
if(activeSheet.getName() != "スプレッドシート名"){
|
52
|
-
|
53
|
-
return;
|
54
|
-
|
55
|
-
}
|
56
|
-
|
57
|
-
var activeCell = activeSheet.getActiveCell(); // アクティブセル
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
if(activeCell.getColumn() == 2){
|
64
|
-
|
65
|
-
var newInputRow = activeCell.getRow();
|
66
|
-
|
67
|
-
var taskNo = activeSheet.getRange(activeCell.getRow(), 1).getValues();
|
68
|
-
|
69
|
-
}
|
70
|
-
|
71
|
-
}
|
72
34
|
|
73
35
|
|
74
36
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
function myFunction() {
|
40
40
|
|
41
|
-
var ss = SpreadsheetApp.openById('
|
41
|
+
var ss = SpreadsheetApp.openById('******');
|
42
42
|
|
43
43
|
var data = ss.getDataRange().getValues();
|
44
44
|
|
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
function sendSlack(slackText) {
|
76
76
|
|
77
|
-
var webHookUrl = "
|
77
|
+
var webHookUrl = "********";
|
78
78
|
|
79
79
|
|
80
80
|
|