Sync Trello Cards with Reminders
Tags: trello, api, sirishortcuts
Published: 2019-07-01 22:52:21

Trello has recently updated their Reminder system. It works great! Except on mobile. So, I needed a way to receive better alerts from Trello when a Card was due.

I created a Shortcut that quickly got large and out of hand. I decided to break it up into smaller, more manageable chunks; like modules. 

I use a combination of the built in Trello options and Trello API calls. The API calls are necessary to update some information not exposed by the built in Shortcut functionality. If this interests you, you'll need an [API Key and Token](https://developers.trello.com/) to use these. If not, have fun reading anyway!

Note: I have a lot of _Func DoWhatever_ Shortcuts for reuse-ability.

The Shortcuts

* **[Sync Trello & Reminders](https://www.icloud.com/shortcuts/9c06cfd4b5bb4b32885f445503b34f3a)** This will call the five Sub-Shortcuts in a 
specific order.

1. **[Update Trello Cards from Completed Reminders](https://www.icloud.com/shortcuts/bfdcc6b0cfd44145aa703efde333dff8)** This is where you'll need the API Key and Token. Marks a Trello Card that has a Due Date as Completed if it has a matching Reminder in your Reminders List.

    a. **[Func MarkTrelloCardComplete](https://www.icloud.com/shortcuts/48605eec7c074cff834f5874e36d1161)** Takes a Card ID as input and marks it as Complete in Trello.

2. **[Update Reminders from Completed Trello Cards](https://www.icloud.com/shortcuts/da05c49f3f3d4c93b78214751dff6d33)** This is where you'll need the API Key and Token again. Removes a Reminder from the Reminders List if its respective Trello Card has a Due Date and it is marked as complete.

3. **[Add Trello Cards from Reminders](https://www.icloud.com/shortcuts/77a2f9d9d6e24470ac535cbf96e49811)** This takes any Reminders you've added to your Reminders List and adds them as Cards to a Trello List if they don't yet exist.

4. **[Func DeleteIncompleteReminders](https://www.icloud.com/shortcuts/ec96ad384b4042eb97cd8673b69c1550)** Wipes out the Reminders List and gets ready for an import from Trello.

5. **[Add Reminders from Trello Cards](https://www.icloud.com/shortcuts/160bfa5c53d044148695d2e8ff86ee25)** Now, we can safely import Trello Cards that have Due Dates into the Reminders List.

    a. **[Func AddUniqueReminder](https://www.icloud.com/shortcuts/d532fc8334ef4c238f61fd53e1c2aedb)** Another module I like to reuse that allows me to pass a Dictionary into it and get a unique Reminder created. **Add Reminders from Trello Cards** relies on this guy.

Hopefully I have all the links straight forward enough so you can add and start using them. They all have Import Questions which should make things a little easier. Have the following handy:

* The name of the Reminders list to sync with Trello
* The name of the Trello Board where your List is to sync with Reminders
* The name of the Trello List from the Board in the above bullet
* Your Trello API Key
* Your Trello API Token

I know this seems like a lot to take in, but it's working pretty good for me. Hopefully someone else can get some use from it. Please let me know if you have any questions; I'm happy to help! Also, please let me know if I didn't properly scrub my api key and token out of these first! haha!

Thanks!