Skip to content

Instantly share code, notes, and snippets.

@extratone
Created October 13, 2022 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extratone/5841bf129e8492f2355f7805999db84a to your computer and use it in GitHub Desktop.
Save extratone/5841bf129e8492f2355f7805999db84a to your computer and use it in GitHub Desktop.
Example output from my Discourse Thread ⇨ Drafts Siri Shortcut.

"Draftist - a Drafts Action Group for Todoist - Actions - Share What You've Made - Drafts Community" - forums.getdrafts.com

Updated 10132022-121628


FlohGro | 2022-05-15 19:31:48 UTC | #1

Finally I can launch a project I wanted to do for quite a while. After a few months of work I’m happy to release Draftist - a Drafts Action Group for integrating with Todoist.

The Action Group contains a lot of Actions to let you...

  • … Create Tasks (from easy quickadd to complex tasks with settings; single or multiple)
  • … Import tasks (in various options)
  • … Modify tasks (labels, due dates, resolve/delete tasks)

Being inspired a lot by @sylumer 's TADpole / ThoughtAsylum Drafts Library I also implemented this using a Javascript file with all the underlying functions and then building the Actions from it.

You can download the Action Group from the Action directory here: Draftist Action Group

The code and also all Action Descriptions and Instructions are hosted in the GitHub repository here: Draftist GitHub repository

Make sure to run the Draftist Setup/Update Action after downloading the Action Group into your Drafts App.

Several of the Actions allow (and require) user configuration of e.g. Todoist filters - I tried to make this as easy as possible for everyone.

If you have problems during the setup, configuration or usage of the Actions please let me know.

Also if you have other usecases you want to automate with Draftist I would be interested to hear them and try to include them in future versions.

I hope that Draftist simplyfies and speeds up many of your workflows and helps to remove friction from your processes.

Let me know what you are thinking 🚀


sylumer | 2022-05-15 20:07:53 UTC | #2

Congratulations on the release 👏🏻


Stephen_Gardner | 2022-05-16 10:34:45 UTC | #3

Fantastic work. Much appreciated. Would you consider making similar, easy to setup action groups for Notion and Airtable? Once again this is excellent. Thank you.


FlohGro | 2022-05-16 12:29:04 UTC | #4

[quote="Stephen_Gardner, post:3, topic:12674"] Fantastic work. Much appreciated. [/quote] Thanks a lot Stephen :smiling_face:

[quote="Stephen_Gardner, post:3, topic:12674"] Would you consider making similar, easy to setup action groups for Notion and Airtable? [/quote] I personally don't use Notion / Airtable - I never found a real usecase for Airtable for myself and just tested Notion a bit but I didn't like the experience. So I don't think I'll built something for those Apps at that scale of complexity ;)


Stephen_Gardner | 2022-05-16 15:38:16 UTC | #5

Ok. Thanks for replying


FlohGro | 2022-06-02 11:43:33 UTC | #6

In case you missed this - I recorded an introduction and setup video for the Action Group https://www.youtube.com/watch?v=gHObL8GqThM

Let me know if you would see other videos about Draftist features :slight_smile:


Sundar_Visweswaran | 2022-06-04 13:08:17 UTC | #7

I keep getting unauthorized errors. How do I make this action to talk to my Todoist account?


sylumer | 2022-06-04 14:22:57 UTC | #8

Try "forgetting" your Todoist credentials to force reauthorisation.

https://docs.getdrafts.com/docs/settings/credentials


Sundar_Visweswaran | 2022-06-04 13:39:25 UTC | #9

Awesome. That worked. Thanks


derekvan | 2022-09-23 10:25:14 UTC | #10

This seems great, thanks for sharing it. I can't get any of the "import" actions to work though.

"Import todays tasks" gives these errors:

get tasks from filter "overdue, today" failed: HTTP Status 404: Not Found, Response: 404 page not found
Script Error: TypeError: undefined is not a function (near '...task of tasks...')
Line number: 919, Column 12

The actions "import from selected label" and import from selected project will correctly provide a prompt with my available labels and projects, but then fail to return tasks, instead giving an error.

get tasks from filter "@week" failed: HTTP Status 404: Not Found, Response: 404 page not found

FlohGro | 2022-09-23 12:21:04 UTC | #11

That should not happen.. It’s working for me (just tested it)

Can you please try to forget your credentials (see the post from @sylumer above. And try again? It should ask you to store your credentials in Drafts again..

Also please try to add a task to todoist with one of the Draftist Actions and let me know if this works


derekvan | 2022-09-23 12:42:43 UTC | #12

After forgetting credentials, the problem is still there.

I am able to create tasks, tested with a few different of your actions.


derekvan | 2022-09-23 12:43:44 UTC | #13

Not sure if this is relevant, but I am on the free trial of the business plan right now.


FlohGro | 2022-09-23 20:34:05 UTC | #14

I don’t know if this is relevant.. I would assume that it doesn’t make a difference regarding the requests to the Todoist API. do you get the same response that you posted earlier?

What Drafts App version are you running?

Did you try it on macOS and iOS and got the same results?

I just want to try finding differences / parts that could cause problems


FlohGro | 2022-09-23 20:38:17 UTC | #15

So just saw that comment here: https://forums.getdrafts.com/t/getting-tasks-from-todoist/13398/4?u=flohgro

I expected the v2 Switcher for Drafts to be released later this year - this can cause problems right now as @agiletortoise mentioned in that comment, too.

I’m currently „Out of Office“ and traveling so won’t be able to start upgrading Draftist to v2 until probably mid October - sorry about that!


FlohGro | 2022-10-09 14:37:09 UTC | #16

I‘ve finally started working on updating Draftist and migrate it to the new REST API version. Unfortunately it requires a lot of changes in the code so its not just a quick edit 😃

If you have any other feature requests just let me know :slight_smile:


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment