Lists can be useful for when you have shortcuts that you run regularly and tend to type the same inputs over and over. Instead of typing the inputs, why not select them from a list? It’s much quicker and more precise. Here is a simple list that prompts the user to choose their favorite number, shows them a list where they can select one or two, and then shows the user an alert with that information.
This is a fine shortcut, but what happens if you run the shortcut and halfway through decide that you want to select a different number? You could stop the shortcut, edit your list to include that number, and then rerun the shortcut. Or, you could spend 5 minutes setting up a couple of actions to create an automatically updating list that will allow you to add items to the list mid-shortcut without stopping, and have the items remain on the list forever. Follow these steps:
If you don’t already have a Trello account sign up for a free account here.
Create a board, for this tutorial we’ll call ours “test.”
Once you’ve created the board add a list (we’ll call ours “Favorite Number”, and add a card for each item that you want on your list in your shortcut.
Add one more card at the end of the list called “Other” and then head back over to Siri Shortcuts.
In Siri Shortcuts, make a new shortcut and add the “Get Trello Items” action. On that action select “Cards” and choose the board and list we just made.
Add the action “Choose from List” and save that to a variable with the “Set Variable” action.
Now comes the fun part: add an if statement. In the if statement select “Equals” and type “Other”
If the input equals “Other” the next thing that should happen is that the shortcut should ask for your input. You should probably ask the same question you asked at the beginning. Use the “Set Variable action to save this to a variable as well. It’s important that you call this variable the same thing as your first variable.
Now add the action “Add Trello Card.” Make sure you have the correct board and list selected and then make the name the input you just asked for by putting the variable into the name field. If you don’t see the variable pop up immediately you’ll have to swipe that bar to left and scroll until you see it.
Next tap the “x” on the bar that says “other” to delete that, we won’t be needing it.
Finally, finish the shortcut with whatever you’d like to do with that list. Next time you run the list it will pull from those Trello cards and any new input will be automatically added.
Any questions? Want to just show me how you implemented this? Tweet me @dwphotony