{"id":24236,"date":"2020-08-25T12:32:47","date_gmt":"2020-08-25T11:32:47","guid":{"rendered":""},"modified":"2021-01-25T10:21:06","modified_gmt":"2021-01-25T10:21:06","slug":"using-session-and-context-variables-in-tasks","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-1\/docs\/bots\/bot-builder-tool\/dialog-task\/using-session-and-context-variables-in-tasks\/?lang=ja","title":{"rendered":"\u30bf\u30b9\u30af\u5185\u3067\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u304a\u3088\u3073\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5909\u6570\u306e\u4f7f\u7528"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>\u30bf\u30b9\u30af\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u30dc\u30c3\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u63d0\u4f9b\u3059\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3084\u3001\u5b9a\u7fa9\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u5909\u6570\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5229\u7528\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u524d\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u308a\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u6b21\u306e\u30ce\u30fc\u30c9\u306b\u79fb\u884c\u3059\u308b\u305f\u3081\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u306f\u8ffd\u52a0\u306e\u30b7\u30b9\u30c6\u30e0\u5909\u6570\u3067<code>context<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"docs\/bots\/bot-builder-tool\/dialog-task\/context-object\/\">\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30bf\u30b9\u30af\u306eJavaScript\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3001\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30f3\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092JavaScript\u30bf\u30d6\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i\">\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570<\/span><\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ab\u30b9\u30bf\u30e0JavaScript\u30b3\u30fc\u30c9\u3067\u30bf\u30b9\u30af\u306b\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5909\u6570\u3068\u305d\u306e\u7bc4\u56f2\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u5404\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30bf\u30a4\u30d7\u306e\u30ad\u30fc\/\u5024\u306e\u30da\u30a2\u3092GET\u307e\u305f\u306fPUT\u3059\u308bJavaScript\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">   \"EnterpriseContext\" : {\r\n       \"get\" : function(key){...},\/\/get the specified key\r\n       \"put\" : function(key, value, ttl){...} \/\/put the value at the key for the specified ttl, ttl is in minutes\r\n   },\r\n   \"BotContext\" : {\r\n       \"get\" : function(key){...},\/\/get the specified key\r\n       \"put\" : function(key, value, ttl){...} \/\/put the value at the key for the specified ttl, ttl is in minutes\r\n   },\r\n   \"UserContext\" : {\r\n       \"get\" : function(key){...},\/\/get the specified key\r\n   },\r\n   \"UserSession\" : {\r\n       \"get\" : function(key){...},\/\/get the specified key\r\n       \"put\" : function(key, value, ttl){...} \/\/put the value at the key for the specified ttl, ttl is in minutes\r\n   },\r\n   \"BotUserSession\" : {\r\n       \"get\" : function(key){...},\/\/get the specified key\r\n       \"put\" : function(key, value, ttl){...} \/\/put the value at the key for the specified ttl, ttl is in minutes\r\n   }<\/pre>\n<p>\u4f8b\uff1a<\/p>\n<pre class=\"lang:default decode:true\">\u00a0 \u00a0 BotContext.put(\"topicSessionVariable\",\"music\",2000);\r\n\u00a0 \u00a0 UserSession.put(\"firstName\",\"Mary\",20000);\r\n\u00a0 \u00a0 UserContext.get(\"firstName\");<\/pre>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i-2\">\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30bf\u30a4\u30d7<\/span><\/h2>\n<p>\u30dc\u30c3\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30bf\u30a4\u30d7\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5909\u6570\u304c\u4f7f\u7528\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>EnterpriseContext<\/strong> &#8211; \u4f01\u696d\u5185\u306e\u3059\u3079\u3066\u306e\u30dc\u30c3\u30c8\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30fc\u304c\u5229\u7528\u53ef\u80fd\u306a\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3002\u305f\u3068\u3048\u3070\u3001GitHub\u30dc\u30c3\u30c8\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306f1\u3064\u4ee5\u4e0a\u306e\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u30c7\u30fc\u30bf\u3092<strong>Gitrepository (Enterprise Context)<\/strong> \u3068\u3057\u3066\u4fdd\u6301\u3059\u308b\u306b\u306f\u3001\u6b21\u306e JavaScript \u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">var userRepository = {\r\n\"title\": _labels_[repository],\r\n\"value\": repository\r\n};\r\nEnterpriseContext.put('Gitrepository', userRepository, 200000);<\/pre>\n<\/li>\n<li><strong>BotContext<\/strong> &#8211; \u3053\u306e\u7279\u5b9a\u306e\u30dc\u30c3\u30c8\u306e\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5229\u7528\u53ef\u80fd\u306a\u30ad\u30fc\/\u5024\u306e\u30da\u30a2\u3002\u305f\u3068\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5834\u6240\u306b\u3088\u3063\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u304b\u304b\u308b\u91d1\u878d\u53d6\u5f15\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u901a\u8ca8\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u901a\u8ca8\u30c7\u30fc\u30bf\u3092<strong>currency (Bot Context)<\/strong>\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306eJavaScript\u30b3\u30fc\u30c9\u3067\u6c38\u7d9a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">var defaultCurrency = { TODO Custom JavaScript for location-based currency }\r\nBotContext.put('currency', defaultCurrency, 200000);<\/pre>\n<\/li>\n<li><strong>UserContext<\/strong> &#8211; \u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u30dc\u30c3\u30c8\u304c\u5229\u7528\u53ef\u80fd\u306a\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3002\u3053\u308c\u3089\u306e\u30ad\u30fc\u306f\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li><strong>UserContext.get(&#8220;_id&#8221;)<\/strong> &#8211;\u00a0Kore.ai\u306e\u30e6\u30fc\u30b6\u30fcID\u3002<\/li>\n<li><strong>UserContext.get(&#8220;emailId&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fcID\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3002<\/li>\n<li><strong>UserContext.get(&#8220;lastName&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u5b57\u3002<\/li>\n<li><strong>UserContext.get(&#8220;firstName&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3002<\/li>\n<li><strong>UserContext.get(&#8220;profImage&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u753b\u50cf\u307e\u305f\u306f\u30a2\u30d0\u30bf\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3002<\/li>\n<li><strong>UserContext.get(&#8220;profColor&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u30ab\u30e9\u30fc\u3002<\/li>\n<li><strong>UserContext.get(&#8220;activationStatus&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u72b6\u614b\u3002<\/li>\n<li><strong>UserContext.get(&#8220;jTitle&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u306e\u30bf\u30a4\u30c8\u30eb (\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408)\u3002<\/li>\n<li><strong>UserContext.get(&#8220;orgId&#8221;)<\/strong> &#8211;\u00a0\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u7d44\u7e54ID (\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408)\u3002<\/li>\n<li><strong>UserContext.get(&#8220;identities&#8221;)<\/strong> &#8211; \u4ee3\u66ff\u30e6\u30fc\u30b6\u30fcID (\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5834\u5408)\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u305f\u3068\u3048\u3070\u30012\u3064\u306e<code>UserContext<\/code>\u5909\u6570\u304b\u3089\u306eGET\u306b\u57fa\u3065\u3044\u3066\u3001\u30ad\u30fc\u304c<code>fullName<\/code>\u3068\u3057\u3066\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b<code>UserSession<\/code>\u5909\u6570\u3092\u4f7f\u7528\u3057\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u5024\u3092PUT\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">var name = UserContext.get(\"firstName\")+UserContext.get(\"lastName\");\r\nUserSession.put(\"fullName\") = name;<\/pre>\n<\/li>\n<li><strong>UserSession<\/strong> &#8211; \u4f01\u696d\u5185\u306e\u3059\u3079\u3066\u306e\u30dc\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u3001\u3053\u306e\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066\u5b9a\u7fa9\u3067\u304d\u308b\u30ad\u30fc\/\u5024\u306e\u30da\u30a2\u3002\u5546\u696d\u3001\u4ea4\u901a\u3001\u5b85\u914d\u30b5\u30fc\u30d3\u30b9\u306b\u5229\u7528\u3055\u308c\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u81ea\u5b85\u4f4f\u6240\u306a\u3069\u3001\u3059\u3079\u3066\u306e\u30dc\u30c3\u30c8\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u4f4d\u7f6e\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306eJavaScript\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u4f4d\u7f6e\u60c5\u5831\u3092<strong>HomeLocation (UserSession)<\/strong>\u3068\u3057\u3066\u6c38\u7d9a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">var location = {\r\n \"title\": labels[location],\r\n \"value\": {\r\n \"latitude\": location.latitude,\r\n \"longitude\": request.location.longitude\r\n }\r\n};\r\nUserSession.put('HomeLocation', location, '20000');<\/pre>\n<\/li>\n<li><strong>BotUserSession<\/strong> &#8211; \u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306b\u57fa\u3065\u3044\u3066\u3001\u7279\u5b9a\u306e\u30dc\u30c3\u30c8\u306b\u5b9a\u7fa9\u3067\u304d\u308b\u30ad\u30fc\/\u5024\u306e\u30da\u30a2\u3002\u30dc\u30c3\u30c8\u306e1\u3064\u4ee5\u4e0a\u306e\u30bf\u30b9\u30af\u306b\u5bfe\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u4f4d\u7f6e\u60c5\u5831\u3092\u6c38\u7d9a\u5316\u3059\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u65c5\u884c\u30dc\u30c3\u30c8\u306e\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u540c\u4e00\u306e\u81ea\u5b85\u3068\u76ee\u7684\u5730\u306e\u4f4f\u6240\u306b\u57fa\u3065\u3044\u3066\u30d5\u30e9\u30a4\u30c8\u3084\u30db\u30c6\u30eb\u3092\u4e88\u7d04\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306eJavaScript\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u81ea\u5b85\u3068\u76ee\u7684\u5730\u306e\u30c7\u30fc\u30bf\u3092<strong>HomeLocation (BotUserSession)<\/strong>\u3084<strong>DestinationLocation (BotUserSession)<\/strong>\u3068\u3057\u3066\u6c38\u7d9a\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">var homelocation = {\r\n \"title\": labels[request.sourceLocation],\r\n \"value\": {\r\n \"latitude\": request.sourceLocation.latitude,\r\n \"longitude\": request.sourceLocation.longitude\r\n }\r\n};\r\nBotUserSession.put('HomeLocation', homelocation, '20000');\r\nvar destlocation = {\r\n \"title\": labels[request.destLocation],\r\n \"value\": {\r\n \"latitude\": request.destLocation.latitude,\r\n \"longitude\": request.destLocation.longitude\r\n }\r\n};\r\nBotUserSession.put('DestinationLocation', destlocation, '20000\u2019);<\/pre>\n<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"i-3\">\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30ad\u30fc<\/span><\/h2>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u30ad\u30fc\u3068\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30ad\u30fc\u306b\u52a0\u3048\u3066\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u5411\u3051\u306eKore.ai\u5909\u6570\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u304c\u3042\u308a\u307e\u3059\u3002\u6b21\u306e\u3044\u305a\u308c\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>_labels_<\/strong> &#8211; GUID\u306e\u4ee3\u308f\u308a\u306b\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u30e9\u30d9\u30eb\u3092\u8fd4\u3059\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Web\u30b5\u30fc\u30d3\u30b9API\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u8981\u6c42\u3055\u308c\u305f\u5834\u5408\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306eID\u306fGUID\u3068\u3057\u3066\u8fd4\u3055\u308c\u307e\u3059\u3002<code>_labels_<\/code>\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001GUID\u306e\u4ee3\u308f\u308a\u306bGUID\u306e\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u540d\u524d\u3092\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Kore.ai\u3067\u306f\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f <code>_labels_<\/code> \u30ad\u30fc\u306b\u5bfe\u3059\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u6b21\u306e\u4f8b\u306e\u3088\u3046\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">{\r\n    \"_labels_\": {\r\n        \"15379386734832\": \"roadlabs.com\",\r\n        \"26377329985341\": \"Test Project\",\r\n        \"workspace\": \"roadlabs.com\",\r\n        \"project\": \"Test Project\"\r\n    },\r\n    \"_fields_\": {\r\n        \"workspace\": \"15379386734832\",\r\n        \"project\": \"26377329985341\"\r\n    }\r\n}<\/pre>\n<p>\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u306e<code>_labels_<\/code>\u30ad\u30fc\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">print('&lt;a href=\"https:\/\/app.asana.com\/0\/' + workspace.id + '\/' + id + '\/f\" target=\"_blank\"&gt;' + title + '&lt;\/a&gt; in workspace '+_labels_[workspace.id]);<\/pre>\n<\/li>\n<li><strong>_tenant_<\/strong> &#8211; \u5b9a\u7fa9\u6e08\u307f\u306e\u4f01\u696d\u306e\u30c6\u30ca\u30f3\u30c8\u3092\u8fd4\u3059\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001<em>JIRA<\/em>\u306b\u306f<span style=\"color: #0000ff\">koreteam<\/span>, in\u00a0<span style=\"color: #0000ff\">https:\/\/<strong>koreteam<\/strong>.atlassian.net\/browse\/BBF-3265<\/span>\u306e\u3088\u3046\u306aURL\u306e\u30c6\u30ca\u30f3\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<code>_tenant_<\/code>\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30bf\u30b9\u30af\u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u30ea\u30f3\u30af\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">var title = request.fields.issuetype.name + ' &lt;a href =\"https:\/\/' + _tenant_ + '\/browse\/' + response.key + '\" target = \"_blank\"&gt;' + request.fields.summary + '&lt;\/a&gt; \u00a0has been created.';<\/pre>\n<\/li>\n<li><strong>_fields_<\/strong> &#8211; \u30da\u30a4\u30ed\u30fc\u30c9\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u95a2\u4fc2\u306e\u306a\u3044\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30bf\u30b9\u30af\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u5165\u529b\u3092\u8fd4\u3059\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001<em>JIRA<\/em>\u30a2\u30af\u30b7\u30e7\u30f3\u30bf\u30b9\u30af\u3067\u306f\u3001\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u306f\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u540d\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u6b21\u306e\u3088\u3046\u306b<code>_fields_<\/code>\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<pre class=\"lang:default decode:true\">_fields_[\"workspace\"]<\/pre>\n<\/li>\n<li><strong>_last_run<\/strong> &#8211; <span style=\"color: #0000ff\">2016-03-05T12:44:38+00:00<\/span>\u306e\u3088\u3046\u306b\u3001ISO 8601\u5f62\u5f0f\u3092\u4f7f\u7528\u3059\u308bWeb\u30b5\u30fc\u30d3\u30b9\u30dd\u30fc\u30ea\u30f3\u30b0\u306e\u5354\u5b9a\u4e16\u754c\u6642\u30c7\u30fc\u30bf\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8fd4\u3059\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Web\u30b5\u30fc\u30d3\u30b9\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u30da\u30a4\u30ed\u30fc\u30c9\u30ec\u30b9\u30dd\u30f3\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u8fd4\u3059\u5834\u5408\u3001<code>_last_run<\/code>\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001<code>_last_run<\/code>\u306e\u5024\u306e\u524d\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u7d50\u679c\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"\u30bf\u30b9\u30af\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u30dc\u30c3\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304c\u63d0\u4f9b\u3059\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3084\u3001\u5b9a\u7fa9\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u5909\u6570\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306e\u5229\u7528\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u3063\u3066\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u524d\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u308a\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u6b21\u306e\u30ce\u30fc\u30c9\u306b\u79fb\u884c\u3059\u308b\u305f\u3081\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30c0\u30a4\u30a2\u30ed\u30b0\u30bf\u30b9\u30af\u306f\u8ffd\u52a0\u306e\u30b7\u30b9\u30c6\u30e0\u5909\u6570\u3067context\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u30bf\u30b9\u30af\u306eJavaScript\u3092\u5b9a\u7fa9\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570\u3001\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30f3\u30d7\u30c8\u30a8\u30c7\u30a3\u30bf\u3092JavaScript\u30bf\u30d6\u304b\u3089\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30bb\u30c3\u30b7\u30e7\u30f3\u5909\u6570 \u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ab\u30b9\u30bf\u30e0JavaScript\u30b3\u30fc\u30c9\u3067\u30bf\u30b9\u30af\u306b\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u5909\u6570\u3068\u305d\u306e\u7bc4\u56f2\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u5404\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30bf\u30a4\u30d7\u306e\u30ad\u30fc\/\u5024\u306e\u30da\u30a2\u3092GET\u307e\u305f\u306fPUT\u3059\u308bJavaScript\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 \"EnterpriseContext\" : { \"get\" : function(key){...},\/\/get the specified key \"put\" : function(key, value, ttl){...} \/\/put the value at the key for the specified ttl, ttl is in minutes }, \"BotContext\" : { \"get\" : function(key){...},\/\/get the specified key \"put\" : function(key, value, ttl){...} \/\/put the value at the key...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-24236","post","type-post","status-publish","format-standard","hentry","category-dialog-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/24236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/comments?post=24236"}],"version-history":[{"count":10,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/24236\/revisions"}],"predecessor-version":[{"id":25930,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/24236\/revisions\/25930"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/media?parent=24236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/categories?post=24236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/tags?post=24236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}