-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdd_Notion_Project_to_TickTick.json
161 lines (161 loc) · 3.65 KB
/
Add_Notion_Project_to_TickTick.json
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"name": "Add_Notion_Project_to_TickTick",
"nodes": [
{
"parameters": {
"options": {}
},
"id": "8ba47be9-2d15-4217-b28b-2881c6587cec",
"name": "Loop",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
440,
420
]
},
{
"parameters": {
"command": "=cd /home/node/Notion-TickTick-Automation/ticktick && python3 main.py add_new_project --project_name \"{{ $('Loop').item.json.properties.Name.title[0].text.content }}\""
},
"id": "dda8c52b-0d42-4760-b1c1-d851e40b4398",
"name": "Add New Project",
"type": "n8n-nodes-base.executeCommand",
"typeVersion": 1,
"position": [
660,
440
]
},
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"databaseId": {
"__rl": true,
"value": "1748fda6-970a-81a6-a420-f7014c03bb53",
"mode": "list",
"cachedResultName": "Projects",
"cachedResultUrl": "https://www.notion.so/1748fda6970a81a6a420f7014c03bb53"
},
"simple": false
},
"id": "d1b39b18-7522-47d8-8f07-246e227a85a3",
"name": "New Notion Project Created",
"type": "n8n-nodes-base.notionTrigger",
"typeVersion": 1,
"position": [
220,
420
],
"credentials": {
"notionApi": {
"id": "bqxRAf0tUlKKG2nd",
"name": "Notion account"
}
}
},
{
"parameters": {
"resource": "databasePage",
"operation": "update",
"pageId": {
"__rl": true,
"value": "={{ $('Loop').item.json.url }}",
"mode": "url"
},
"propertiesUi": {
"propertyValues": [
{
"key": "TickTick Entity ID|rich_text",
"textContent": "={{ $('Add New Project').item.json[\"stdout\"] }}"
},
{
"key": "Last Synced Name|rich_text",
"textContent": "={{ $('Loop').item.json.properties.Name.title[0].plain_text }}"
}
]
},
"options": {}
},
"id": "52f0fca0-6f29-4fa9-a47d-12c5ac7e35a5",
"name": "Update Notion Project ID",
"type": "n8n-nodes-base.notion",
"typeVersion": 2,
"position": [
860,
440
],
"credentials": {
"notionApi": {
"id": "bqxRAf0tUlKKG2nd",
"name": "Notion account"
}
},
"onError": "continueRegularOutput"
}
],
"pinData": {},
"connections": {
"Loop": {
"main": [
[],
[
{
"node": "Add New Project",
"type": "main",
"index": 0
}
]
]
},
"Add New Project": {
"main": [
[
{
"node": "Update Notion Project ID",
"type": "main",
"index": 0
}
]
]
},
"New Notion Project Created": {
"main": [
[
{
"node": "Loop",
"type": "main",
"index": 0
}
]
]
},
"Update Notion Project ID": {
"main": [
[
{
"node": "Loop",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "1addbb6a-a96b-4f81-a03f-6e91a07c71cc",
"id": "TSCbAo2yna98Eo5n",
"meta": {
"instanceId": "dd4285230ae27461e688787c75f01f50e8fa71ab079f366d75ca7d3ebda98c44"
},
"tags": []
}