回答編集履歴
3
回答追記
test
CHANGED
@@ -33,3 +33,41 @@
|
|
33
33
|
このQUERY PARAMS使えばカード丸ごと(チェックリストも)コピーしてくれるかもしれません。。。(試してないから分かりません)
|
34
34
|
|
35
35
|
**idCardSource**:The ID of a card to copy into the new card
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
---
|
40
|
+
|
41
|
+
**追記 1/29 02:10**
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```GoogleAppScript
|
46
|
+
|
47
|
+
function copyCard(){
|
48
|
+
|
49
|
+
var trelloKey = "xxxxxxxxxxxxx";//key
|
50
|
+
|
51
|
+
var trelloToken = "xxxxxxxxxxxxx";//token
|
52
|
+
|
53
|
+
var idList = 'xxxxxxxxxxxxx'; //コピー先のリストのID
|
54
|
+
|
55
|
+
var idCardSource = 'xxxxxxxxxxxxx';//コピー元のカードのID
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
var url = 'https://api.trello.com/1/cards?idList=' + idList + '&idCardSource=' + idCardSource + '&key=' + trelloKey + '&token=' + trelloToken ;
|
62
|
+
|
63
|
+
var res = UrlFetchApp.fetch(url, {'method':'post'});
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
Logger.log(res);
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
```
|
2
追記
test
CHANGED
@@ -23,3 +23,13 @@
|
|
23
23
|
[POST https://api.trello.com/1/cards/id/checklists](https://developers.trello.com/reference/#cardsidchecklists-1)
|
24
24
|
|
25
25
|
[POST https://api.trello.com/1/checklists](https://developers.trello.com/reference/#checklists)
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
---
|
30
|
+
|
31
|
+
**追記 1/14 11:10**
|
32
|
+
|
33
|
+
このQUERY PARAMS使えばカード丸ごと(チェックリストも)コピーしてくれるかもしれません。。。(試してないから分かりません)
|
34
|
+
|
35
|
+
**idCardSource**:The ID of a card to copy into the new card
|
1
追記
test
CHANGED
@@ -9,3 +9,17 @@
|
|
9
9
|
もしチェックリストのコピーが不要だとしてKodanosukeさんのコードが上手く動く場合
|
10
10
|
|
11
11
|
二つのカード間でチェックリストを共有することになってしまうのでそれだとタスク管理にならないのではないかと思いました。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
**追記 1/14 11:00**
|
18
|
+
|
19
|
+
[POST https://api.trello.com/1/cards](https://developers.trello.com/reference/#cards-2)についてのQUERY PARAMSにidChecklistは載っていないですね。
|
20
|
+
|
21
|
+
以下の二つのどちらかを使うしかなさそうです。
|
22
|
+
|
23
|
+
[POST https://api.trello.com/1/cards/id/checklists](https://developers.trello.com/reference/#cardsidchecklists-1)
|
24
|
+
|
25
|
+
[POST https://api.trello.com/1/checklists](https://developers.trello.com/reference/#checklists)
|