GoogleSpreadsheetã«å®æçã«ç»é²ãããã¿ã¹ã¯ä¸è¦§ãæ¸ãã¦ããã¨Google Apps Scriptã§èªåç»é²ãããããã«ããã
GASããã§ã¤ã¹ããçç±ã¯2ã¤ã
- å®æå®è¡ãããããã®ãµã¼ããä¸è¦
- ã¹ãã¬ããã·ã¼ãã¨ã¹ã¯ãªããã対ã«ãªãã®ã§ããã®å¦çãã¦ãã¹ã¯ãªããã©ãï¼ãã£ã¦ãªãã«ãã
GASã使ã£ãã®ã§ä¸è¦§ç®¡çã¯ã¹ãã¬ããã·ã¼ãããã¨ãè¨ããã
ã¹ãã¬ããã·ã¼ãã ã¨ãããªãã«ã»ãã¥ã¢ãªç°å¢ã§ç°¡åã«ãã¼ã ã«å
±æåºæ¥ãã®ãã¡ãªããã ããã¡ã³ããã³ã¹ãã¨ã³ã¸ãã¢ä»¥å¤ã§ãåºæ¥ãã£ã¦ã®ãã¡ãªããã
ç´°ããã¨ããã¯ãã¼ã ã®ããã¼ã«åããã¦èª¿æ´ããã¨ãããªãã«ä½¿ããããããªãããªã
ã¡ãªã¿ã«GASã¯ä¸è¨ã®ãããªæéããªã¬ã¼ã§å®è¡ã§ãã
- æå®æ¥æ
- æ¯æ¥ã®æå®ã®æé
- æ¯é±ã®æå®ææ¥ã¨æå®æ¥æ
- æ¯æã®æå®ã®æ¥æ
ãªã®ã§ããæ¯ã«ã¹ãã¬ããã·ã¼ãã®ã·ã¼ããä½ã£ã¦GASãããããä½ãæ³å®ã
ããã¾ãä½ãè¾¼ã¿ãããã¨è¨å®ãç
©éã«ãªãããã·ã³ãã«ã®æ¹ãGASã®æéããªã¬ã¼ã¯ã¡ã½ããåä½ã§å¼ã¹ããã楽ã ãªã£ã¦æãã§ãã®ä»æ§ã«ãã¦ãã
使ãæ¹ã¯ã¹ãã¬ããã·ã¼ãä½ã£ã¦ãããªæãã«ã·ã¼ããä½ãã
ã©ãã«IDããªã¹ãIDãTrelloããæ¯åç´æ¥åãã«è¡ãã®ã¯ãªã¯ã¨ã¹ãåæ°ãå¢ãã¦è¯ããªããªã£ã¦æãã ã£ãã®ã§ä¸è¦§ãå¥ã®ã·ã¼ãã«ãã¦ã©ãã«åããªã¹ãåã使ã£ã¦VLOOKUP()ã§IDãå¼ã£å¼µã£ã¦ããéç¨ããã
ã·ã¼ããããã£ã½ãä½ã£ãã次ã¯ã¹ã¯ãªããã®ç»é²ã
ãã¼ã«âã¹ã¯ãªããã¨ãã£ã¿ã§ãã®ã¹ãã¬ããã·ã¼ãã«ç´ä»ããGASã®ãã¼ã¸ã«è¡ããã
ããããããã«ä¸è¨ã®ã³ã¼ããåããã
ä¸è¨ã®é¨åã¯èªåã®ã¹ãã¬ããã·ã¼ãã«åããã¦ä¿®æ£ãã¦ã
var sheet = spreadsheet.getSheetByName('æ¯é±æææ¥'); var range = sheet.getRange('B7:G24');
ãã¨ã¯ç°å¢å¤æ°ã®ç»é²ã
GASã®ãã¡ã¤ã«âããã¸ã§ã¯ãã®ããããã£âã¹ã¯ãªããã®ããããã£ã«ç°å¢å¤æ°ãç»é²ããã
ä¸è¨ã®å¤æ°ãç»é²ããã
var trelloKey = scriptProp.TRELLO_API_KEY; var trelloToken = scriptProp.TRELLO_TOKEN; var username = scriptProp.TRELLO_USERNAME; var trelloBaseURL = scriptProp.TRELLO_BASE_URL;
TRELLO_BASE_URL 㯠https://trello.com/1/ ã«ãªãã
ãã以å¤ã«ã¤ãã¦ã¯å¤§æ¬ã«ãªã£ã¦ãä¸è¨ã®ãã¼ã¸ãè¦ãã¨å
¨é¨ä¹ã£ã¦ãã
ããããä¸è¨ã®ã¹ã¯ãªããã®9å²ä½ã¯ä¸è¨ã®Qiitaã®ã³ã¼ããªã®ã§è©³ããã¯ä¸è¨ã®Qiitaãè¦ãã¨å
¨ã¦ãããã¯ãã
å®éã«èªåãä¸è¨ã®Qiitaã«ã¹ãã¬ããã·ã¼ãã®é£ä¿é¨åãæ¸ããã ãã«éããªãã
ä¼¼ããããªäºã¯IFTTTã¨ãã§ãåºæ¥ãã®ã ãã©å人ã§ä½¿ãã«ãã¦ã便å©ãããªã®ã§ã裾åãã