Apply action to all drafts with same tag?

Is it possible to create an action that will iterate through each draft with the same tag? For instance, if I had items tagged “bear” or “dayone” to go through each one and move them, one by one, into those apps? If not within drafts itself, could it be done from the shortcuts app?

Yes, it is possible to query and loop over drafts in an action.

For your case you may just be looking for batch operations. Filter draft list by a tag, tap and hold “Select” to select all, then use Operations > Run Action.

1 Like

It looks like Greg’s given a definitive reply while I’ve been composing a response and helping my son with his homework; but just in case it helps, and given I’d mostly written it already, I thought I’d post what I’d got anyway.

You could do it wih an action, but you can do it with the built-in batch operation functionality.

Choose to filter on the tag you want:

Then choose to select (press and hold to select all) whichever drafts you want.

Select Operations, then Run Action.

Then choose the action to run against each selected draft.


So I have not been able to get batch actions to do what I want. I have an action to add a draft to DayOne, but if I select more than one draft it will only run on the first one selected. I would like the script to work on each draft with the tag. Any suggestions or sample scripts? Thanks!

Can you share your Day One action?

My best guess currently is that you aren’t automatically returning to Drafts from Day One to process the next Draft in the set.

Since I don’t know how to do that, you are probably right, but here it is:


I’ve taken a quick look and that action’s just using a URL.


You would probably want to look at using an x-callback URL instead; assuming DayOne supports that. Their help page on their URL scheme support unfortunately makes no mention of it and I’m not a DayOne user so I’m not in a position to test it myself.

Try swapping the URL step out for a Call back step and see if that makes a difference.

Thanks, but it seems Day One doesn’t have x-callback-url support. I’ve made it a feature request.