{"id":150493,"date":"2024-06-25T11:45:00","date_gmt":"2024-06-25T02:45:00","guid":{"rendered":"https:\/\/support.questetra.com\/?p=150493"},"modified":"2024-06-25T12:05:02","modified_gmt":"2024-06-25T03:05:02","slug":"service-task-trello-card-create","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-card-create\/","title":{"rendered":"Trello: Create Card"},"content":{"rendered":"\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"58\" data-attachment-id=\"113160\" data-permalink=\"https:\/\/support.questetra.com\/en\/developer-blog\/how-to-use-timer-start-event\/attachment\/advanced-banner-new-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1200%2C68&amp;ssl=1\" data-orig-size=\"1200,68\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"advanced-banner-new-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?fit=1024%2C58&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en-1024x58.png?resize=1024%2C58&#038;ssl=1\" alt=\"\" class=\"wp-image-113160\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=1024%2C58&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=600%2C34&amp;ssl=1 600w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?resize=768%2C44&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/advanced-banner-new-en.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:var(--wp--preset--spacing--10);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--10);padding-left:var(--wp--preset--spacing--20)\"><strong>Trello: Create Card<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-border-color has-product-main-border-color has-white-color has-product-main-background-color has-text-color has-background has-link-color has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-card-create\/\">Trello: \u30ab\u30fc\u30c9\u4f5c\u6210<\/a><\/p>\n\n\n\n<p class=\"has-border-color has-product-main-border-color has-text-color has-white-background-color has-background has-link-color mt-0 pt-0 wp-block-paragraph\" style=\"border-width:2px;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--30);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)\">This item creates a card on Trello.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\n        iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAzBJREFUWEfF\n        l11IFFEUx\/93xnH9iPzow0jBaIOsSNJWI+glX6KHJLcvkiKwF7WXolJ76iWiSLBeUortoSSLcDfp\n        pZfwJXrQVV8MIsNEjFbwI5T1e\/bGndnZnRlnZ8ZZau\/b3HvuOb97zrnnniFI8SC27Z8KZoGPeMHz\n        x0FpGSh2gSBP2k8xC4IxEDIEUeyFyPnxwbNgR7c1wLm+HRBJM0DqAWTYUQpgCaAd4OlDvKsMme0x\n        B6gJ1oOgFUC2TcN6sTAobiHg6Ui0PzGAN\/gUQINDw\/pt7fB7Go10GQPU9L8GIRfZhgyBQ3qadaSM\n        lM8tivFpSrsQqKjVy63XHD15aXEmAs1u7C5wOXbCyhqF79MUGp+NKzrWeUILIMe8nUl\/uV+Co3ud\n        hl7L7G4cxujksjxJ0aDOiTiAlO3cDyXhlt6UwyU4c73eZQ8CIdzp\/KVMh8FH9ii3I27B298GkOuK\n        1PLbck3s5xdF\/AnLMXUJHLbnpMXsrIoUodlV6ZvjCHbmCSAq9taeSdx+OaHioo\/hr7jBJmQxVmQE\n        TKvvuRogQgH+7IDmYCFfKQpyBWmutu0nuj7PxNZ914pRV7U19r0eAEtYxRZWrGSA032XwHGv1BbU\n        ACyZXBcGNQBjHQdRvC1dmjt5bwQfh+biBq8U4WZ1gRkAEIlcxvvKThngzIAPlNb9VwBCXqD78FUZ\n        wBtkxyv7rwDAEPyechmgJjgTe1iiFP88BOwBC3jyFQ9QTYABbASAZThLNGX0tLhRXZFrngNs1e+J\n        XhZvMCkApovdFDbYidRXkM0Z3AJZOAaQZAj03tN\/GwLoQpBUEjoC0CShxTVcEymE89o6MPG8FIX5\n        ciGyGoYe0FxDi0LEDIxPrWB6fk2ylZnOoaTQbnOUIAc0hciiFFud0GrduhRLxcj8MbIyYrb+qGcS\n        TaaPEdute46\/PjmA\/UX23WwGcKTlG\/pGwopIgueYLasakhOHNqO7yY1sF5fM4dE7PI+qu9\/jOhI2\n        JIqIrhk9tm8TcrJ4RxCDowv4He0TogosWjLFjKopdWTZaJPtpjSBJ5IE2WBbHvNEKn9MFIiU\/pqp\n        \/Z6yn9Mkg2+1\/S+COKkwjkUALAAAAABJRU5ErkJggg==\n    \" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-4-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Basic Configs<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Step Name<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #C3C3C3;\"><\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">Note<\/dd>\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_ApiKey<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: Authorization Setting in which API Key is set<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_ApiToken<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Authorization Setting in which API Token is set<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_ListId<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: List ID to create the card in<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Name<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: Card Title<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Desc<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C5: Card Description<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_LabelIds<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6: Label IDs to add to the card (write one per line)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_MemberIds<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C7: Member IDs to add to the card (write one per line)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Start<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C8: Start Date<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Due<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C9-1: Due Datetime<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_DueReminder<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C9-2: Reminder Setting (only effective when C9-1 is set)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_CardId<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C10: Data item to save ID of the card<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_CardUrl<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C11: Data item to save URL of the card detail page<\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To get your API Key and API Token,\n<ol class=\"wp-block-list\">\n<li>Open the <a rel=\"noreferrer noopener\" href=\"https:\/\/trello.com\/power-ups\/admin\" data-type=\"link\" data-id=\"https:\/\/trello.com\/power-ups\/admin\" target=\"_blank\">Power-Ups administration page<\/a> and create a new Power-Up<\/li>\n\n\n\n<li>Proceed to the &#8220;API Key&#8221; page from the left menu, and your API Key is shown on the page<\/li>\n\n\n\n<li>Click the link in &#8220;you can manually generate a Token&#8221; to the right of the API Key to get your API Token<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>IDs of the components (such as Lists, Labels and Members) are not displayed on Trello Web UI, so please use the following items to retrieve IDs:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-listid-get\/\" data-type=\"link\" data-id=\"https:\/\/support.questetra.com\/bpmn-icons\/service-task-trello-listid-get\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trello: Get List ID<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-labelid-get\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trello: Get Label ID<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-memberid-get\/\" target=\"_blank\" rel=\"noreferrer noopener\">Trello: Get Member ID<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-full is-resized has-custom-border is-style-rounded is-style-rounded--1\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"150494\" data-permalink=\"https:\/\/support.questetra.com\/en\/templates\/meeting-report-process\/attachment\/trello-card-create_capture_en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/trello-card-create_capture_en.png?fit=1192%2C1470&amp;ssl=1\" data-orig-size=\"1192,1470\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"trello-card-create_capture_en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/08\/trello-card-create_capture_en.png?fit=511%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/trello-card-create_capture_en_2.png?ssl=1\" alt=\"\" class=\"has-border-color wp-image-150494\" style=\"border-color:#009900;border-width:3px;border-radius:9px;width:700px\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>See also<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/support.questetra.com\/en\/bpmn-icons\/intermediate-error-catch-event-boundary-type\/\" target=\"_blank\">Intermediate Error Catch Event (Boundary Type)<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ul class=\"wp-block-list\">\n<li>An XML file that contains the code below is available to download\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/raw.githubusercontent.com\/Questetra\/Addon-XML\/release-2024-05-02\/trello-card-create.xml\" target=\"_blank\" rel=\"noreferrer noopener\">trello-card-create.xml<\/a> (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>If you are using Professional, you can modify the contents of this file and use it as your own add-on auto step<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\n\nfunction main() {\n    \/\/\/\/ == \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u30fb\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 \/ Config &amp; Data Retrieving ==\n    const auth = retrieveAuth(); \/\/ {apiKey, apiToken}\n    const listId = retrieveListId();\n    const name = retrieveName();\n    const desc = configs.get(&apos;conf_Desc&apos;);\n    const labelIds = retrieveIdsAsList(&apos;conf_LabelIds&apos;);\n    const memberIds = retrieveIdsAsList(&apos;conf_MemberIds&apos;);\n    const start = retrieveStart();\n    const due = retrieveDue();\n    const dueReminder = retrieveDueReminder();\n    const cardIdDef = configs.getObject(&apos;conf_CardId&apos;);\n    const cardUrlDef = configs.getObject(&apos;conf_CardUrl&apos;);\n\n    \/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n    const card = createCard(auth, listId, name, desc, labelIds, memberIds, start, due, dueReminder);\n\n    \/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\n    setData(cardIdDef, card.id);\n    setData(cardUrlDef, card.url);\n}\n\n\/**\n  * config \u306e\u8a8d\u8a3c\u8a2d\u5b9a\u304b\u3089 API \u30ad\u30fc\u3068 API \u30c8\u30fc\u30af\u30f3\u3092\u8aad\u307f\u51fa\u3059\n  * @return {Object} auth\n  * @return {String} auth.apiKey\n  * @return {String} auth.apiToken\n  *\/\nfunction retrieveAuth() {\n    const authKey = configs.getObject(&quot;conf_ApiKey&quot;);\n    const authToken = configs.getObject(&quot;conf_ApiToken&quot;);\n    const apiKey = authKey.getToken();\n    const apiToken = authToken.getToken();\n    return {apiKey, apiToken};\n}\n\n\/**\n  * config \u304b\u3089\u30ea\u30b9\u30c8 ID \u3092\u8aad\u307f\u51fa\u3059\n  * @return {String} listId\n  *\/\nfunction retrieveListId() {\n    const listIdDef = configs.getObject(&apos;conf_ListId&apos;);\n    if (listIdDef === null) { \/\/ \u56fa\u5b9a\u5024\u3067\u6307\u5b9a\u3002\u5fc5\u9808\u9805\u76ee\u306a\u306e\u3067\u3001\u7a7a\u6587\u5b57\u5217\u306f\u3042\u308a\u3048\u306a\u3044\n        return configs.get(&apos;conf_ListId&apos;);\n    }\n    \/\/ \u6587\u5b57\u578b\u30c7\u30fc\u30bf\u9805\u76ee\u306e\u5834\u5408\n    if (listIdDef.matchDataType(&apos;STRING_TEXTFIELD&apos;)) {\n        const listId = engine.findData(listIdDef);\n        if (listId === null) {\n            throw new Error(&apos;List ID is blank.&apos;);\n        }\n        return listId;\n    }\n    \/\/ \u9078\u629e\u578b\u30c7\u30fc\u30bf\u9805\u76ee\u306e\u5834\u5408\n    const selects = engine.findData(listIdDef);\n    if (selects === null || selects.size() === 0) {\n        throw new Error(&apos;List ID is not selected.&apos;);\n    }\n    return selects.get(0).getValue();\n}\n\n\/**\n  * config \u304b\u3089\u30ab\u30fc\u30c9\u306e\u30bf\u30a4\u30c8\u30eb\u3092\u8aad\u307f\u51fa\u3059\n  * @return {String} name\n  *\/\nfunction retrieveName() {\n    const name = configs.get(&apos;conf_Name&apos;);\n    if (name === null || name === &apos;&apos;) {\n        throw new Error(&apos;Card Title is blank.&apos;);\n    }\n    return name;\n}\n\n\/**\n  * config \u306b\u8a2d\u5b9a\u3055\u308c\u305f ID \u4e00\u89a7\u3092\u8aad\u307f\u51fa\u3059\n  * @param {String} confName \u8a2d\u5b9a\u540d\n  * @return {Array&lt;String&gt;} ids\n  *\/\nfunction retrieveIdsAsList(confName) {\n    const dataDef = configs.getObject(confName);\n    if (dataDef === null) {\n        return [];\n    }\n    \/\/ \u6587\u5b57\u578b\u30c7\u30fc\u30bf\u9805\u76ee\u306e\u5834\u5408\n    if (dataDef.matchDataType(&apos;STRING&apos;)) {\n        const dataObj = engine.findData(dataDef);\n        if (dataObj === null) {\n            return [];\n        }\n        return dataObj.split(&apos;\\n&apos;).filter(id =&gt; id !== &apos;&apos;);\n    }\n    \/\/ \u9078\u629e\u578b\u30c7\u30fc\u30bf\u9805\u76ee\u306e\u5834\u5408\n    const selects = engine.findData(dataDef);\n    if (selects === null || selects.size() === 0) {\n        return [];\n    }\n    const ids = [];\n    selects.forEach(item =&gt; {\n        ids.push(item.getValue()); \/\/ \u9078\u629e\u80a2 ID \u3092\u683c\u7d0d\n    });\n    return ids;\n}\n\n\/**\n  * config \u304b\u3089\u958b\u59cb\u65e5\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u51fa\u3059\n  * @return {String} start\n  *\/\nfunction retrieveStart() {\n    const startDef = configs.getObject(&apos;conf_Start&apos;);\n    if (startDef === null) {\n        return null;\n    }\n    const startObj = engine.findData(startDef); \/\/ AddableDate\n    if (startObj === null) {\n        return null;\n    }\n    return startObj.toString(); \/\/ yyyy-MM-dd\n}\n\n\/**\n  * config \u304b\u3089\u671f\u9650\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u51fa\u3059\n  * @return {String} due\n  *\/\nfunction retrieveDue() {\n    const dueDef = configs.getObject(&apos;conf_Due&apos;);\n    if (dueDef === null) {\n        return null;\n    }\n    const dueObj = engine.findData(dueDef); \/\/ AddableTimestamp\n    if (dueObj === null) {\n        return null;\n    }\n    return dateFormatter.format(&apos;UTC&apos;, &quot;yyyy-MM-dd&apos;T&apos;HH:mm:ss&apos;Z&apos;&quot;, dueObj);\n}\n\n\/**\n  * config \u304b\u3089\u30ea\u30de\u30a4\u30f3\u30c0\u30fc\u306e\u8a2d\u5b9a\u3092\u8aad\u307f\u51fa\u3059\n  * @return {Number} dueReminder\n  *\/\nfunction retrieveDueReminder() {\n    const dueReminder = configs.get(&apos;conf_DueReminder&apos;);\n    if (dueReminder === null || dueReminder === &apos;&apos;) {\n        return null;\n    }\n    return parseInt(dueReminder, 10);\n}\n\n\/**\n  * \u30ab\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\n  * @param {Object} auth\n  * @param {String} auth.apiKey\n  * @param {String} auth.apiToken\n  * @param {String} listId\n  * @param {String} name\n  * @param {String} desc\n  * @param {Array&lt;String&gt;} labelIds\n  * @param {Array&lt;String&gt;} memberIds\n  * @param {String} start\n  * @param {String} due\n  * @param {Number} dueReminder\n  * @return {Object} card\n  *\/\nfunction createCard({apiKey, apiToken}, listId, name, desc, labelIds, memberIds, start, due, dueReminder) {\n    const requestBody = {\n        idList: listId,\n        name,\n        desc,\n        idLabels: labelIds,\n        idMembers: memberIds,\n        start,\n        due,\n        dueReminder\n    };\n    const response = httpClient.begin()\n        .body(JSON.stringify(requestBody), &apos;application\/json&apos;)\n        .post(`https:\/\/api.trello.com\/1\/cards?key=${apiKey}&amp;token=${apiToken}`);\n    const status = response.getStatusCode();\n    const responseStr = response.getResponseAsString();\n    if (status !== 200) {\n        engine.log(responseStr);\n        throw new Error(`Failed to create card. status: ${status}`);\n    }\n    return JSON.parse(responseStr);\n}\n\n\/**\n  * \u30c7\u30fc\u30bf\u9805\u76ee\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\n  * @param {DataDefinitionView} dataDef \u30c7\u30fc\u30bf\u9805\u76ee\u306e DataDefinitionView\n  * @param {Object} value \u4fdd\u5b58\u3059\u308b\u5024\n  *\/\nfunction setData(dataDef, value) {\n    if (dataDef !== null) {\n        engine.setData(dataDef, value);\n    }\n}\n\n    <\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This item creates a card on Trello.<\/p>\n","protected":false},"author":17,"featured_media":153125,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[551],"tags":[],"faq_section":[],"class_list":["post-150493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bpmn-icons"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Shiho Tatsumi","author_link":"https:\/\/support.questetra.com\/en\/author\/tatsumi48c607ec82\/"},"uagb_comment_info":0,"uagb_excerpt":"This item creates a card on Trello.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-D9j","jetpack-related-posts":[{"id":168647,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-card-archive\/","url_meta":{"origin":150493,"position":0},"title":"Trello: Archive Card","author":"Hirotaka NISHI","date":"2024-12-19","format":false,"excerpt":"This item archives cards on Trello.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":168663,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-card-move\/","url_meta":{"origin":150493,"position":1},"title":"Trello: Move Card","author":"Hirotaka NISHI","date":"2024-12-19","format":false,"excerpt":"This item moves cards to a specified list on Trello.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":152387,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-listid-get\/","url_meta":{"origin":150493,"position":2},"title":"Trello: Get List ID","author":"Hirotaka NISHI","date":"2023-12-12","format":false,"excerpt":"This item gets a list ID on Trello.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":152911,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-labelid-get\/","url_meta":{"origin":150493,"position":3},"title":"Trello: Get Label ID","author":"Hirotaka NISHI","date":"2023-12-12","format":false,"excerpt":"This item gets a label ID on Trello.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":152944,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/service-task-trello-memberid-get\/","url_meta":{"origin":150493,"position":4},"title":"Trello: Get Member ID","author":"Hirotaka NISHI","date":"2023-12-12","format":false,"excerpt":"This item gets a member ID on Trello.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67286,"url":"https:\/\/support.questetra.com\/en\/bpmn-icons\/googledrive-foldercreate\/","url_meta":{"origin":150493,"position":5},"title":"Google Drive: Create Folder","author":"HatanakaAkihiro","date":"2024-12-06","format":false,"excerpt":"This item creates a new folder in the specified folder on Google Drive.","rel":"","context":"In &quot;BPMN Icons&quot;","block_context":{"text":"BPMN Icons","link":"https:\/\/support.questetra.com\/en\/category\/bpmn-icons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2024\/12\/bpmn-icon-service-task-google-drive2024.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/10\/bpmn-icon-service-task-trello.png?fit=1200%2C675&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/150493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=150493"}],"version-history":[{"count":10,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/150493\/revisions"}],"predecessor-version":[{"id":162438,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/150493\/revisions\/162438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/153125"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=150493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=150493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=150493"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=150493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}