-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusecase.js
More file actions
47 lines (33 loc) · 1.24 KB
/
Copy pathusecase.js
File metadata and controls
47 lines (33 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// github.com
// https://github.com/KuriharaYuya/yuyakanshi-GoogleAppScripts/tree/main
function addStanbyTaskToCal () {
// backlogとcalをload
const contents = loadBacklogAndCal()
const h = contents.task.hash
const r = contents.task.range
const sb = contents.scheduleBuf
// stanbyとなっていて、かつカレンダーに追加されていないタスクを抽出
const t = extractStanbyTasks(h, sb)
// 19時以降にカレンダーアサインし、sheetもupdateする
assignTaskToCal(t,r)
}
function removeUnStanbyTaskToCal () {
// backlogとcalをload
const contents = loadBacklogAndCal()
const h = contents.task.hash
const r = contents.task.range
const sb = contents.scheduleBuf
// unstanbyで、カレンダーに追加されているものを削除する
const tasksAndEvents = extractUnstanbyTask(h, sb);
// カレンダーから削除 && added cを塗り替えを回す。
unassignTasksFromCal(tasksAndEvents, r)
}
function inputCalenderResultsToSheet () {
// backlogとcalをload
const contents = loadBacklogAndCal()
const h = contents.task.hash
const sb = contents.scheduleBuf
const ir = getScheduleInputRange()
const t = extractTasksFromSchedule(sb)
inputScheduleToSheet(ir,t, h)
}