Linked cards created from checklist : sync Due Date and Item Due Date
Asked by Israphil:

Hey Guys,  

I work a lot with checklist and cards created from checklists.  
They are linked this way :

* This is the checklist from which the card were created :  
  ![Screenshot_44.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/243079iC28641A425988832/image-dimensions/474x293?v=v2 "Screenshot_44.jpg")
* Those are the cords with the corresponding due date marked as done or not;![Screenshot_45.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/243080i120B74F872136CA3/image-size/large?v=v2&px=999 "Screenshot_45.jpg")
* The cards done/not done status sync well with the checklist thanks to the functions :
*

  ```
  when the due date is marked as complete in a card, find the first card linked in the attachments, and check item "{triggercardlink}" 
  ```

*

  ```
  when the due date is marked as incomplete in a card, find the first card linked in the attachments, and uncheck item "{triggercardlink}" 
  ```

I would like now to create a function so that when I change the due date of card, the item due date changes too.  
But i can't find a simple way... Do you think of any solution?


Answers:
author: Joon Shin
body: Removed


author: Dreamsuite Mike
body: There is a slightly ugly solution and it would work best if you have an automation "bot" on your board instead of tied to your account.

![Screenshot 2023-03-01 060941.png](https://community.atlassian.com/t5/image/serverpage/image-id/243135i418769B2F7121457/image-size/large?v=v2&px=999 "Screenshot 2023-03-01 060941.png")

The check/uncheck brings focus to that checklist item and then you can set the date.

The same will work for member

comments: author: Israphil
body: Thank you for your answer!  
This works but it sets the time as of today. While I want to set the due date checklist the same the due date card, which can be at another date.  
It's ugly, but i was inspired by your post to creat this : it solves my issue  
![Screenshot_46.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/243271i6C286135699DB8CF/image-size/large?v=v2&px=999 "Screenshot_46.jpg")

I'm using a created custom field where the new due date is stored, then I inject it in the function.


author: Dreamsuite Mike
body: Yeah, sorry my bad. My example should have shown what you had done. At least it was enough to get you there


author: Joon Shin
body: [@Israphil](/t5/user/viewprofilepage/user-id/5152325)

I tried to replicate what you did here, but was not successful.

It appears that you are using a text-type custom field but the "set the item due date on the date in custom field" option would only let me use date-type custom fields. And since the initial "set custom field" only allows you set text-type fields (not date-type), I can't use it at the last step.

Is your automation still working? What happens if you try to recreate the same automation from scratch?

Perhaps Trello has modified/updated the automation UI since then, and no longer allows test-type custom fields to be used to set the checklist item due date.


author: Dreamsuite Mike
body: Hi [@Joon Shin](/t5/user/viewprofilepage/user-id/5205551)

Try this:

```
when a due date is set on a card, find the first card linked in the attachments, set custom field "Date" to "{triggercardduedate}", uncheck item "{triggercardlink}", and set the item due on the date in custom field "Date"
```

![ezgif.com-video-to-gif.gif](https://community.atlassian.com/t5/image/serverpage/image-id/254242iCD7DBB6F42CCD742/image-size/large?v=v2&px=999 "ezgif.com-video-to-gif.gif")