Todoist API Actions - Any help with tweaks appreciated
I have a series of actions that I’ve used with the Todoist API over the years. But, to be quite honest, none of them really work how I’d like them to.
If anyone out there could help with tweaks to the code in each instance to make them fit the bill as outlined below, I would really appreciate any input you can provide. Cheers.
1. Import a project’s tasks, but also include Sections if they exist
This action works fine in that it pulls in the tasks and due dates for any project selected from the prompt when the action is run. However, just over a year ago, Todoist introduced a new entity, Sections, within projects.
So it would be great if, upon import, if any Sections exist, they are listed and preceded by using 3 hashtags (project title is preceded by 2 hashtags), with the tasks relating to each Section then listed below it. In essence, work as it currently does, but just insert the title of Sections where appropriate in the list of project tasks.
2. Import a project’s comments - Timestamped & clear delineation between comments
Again, the original script works fine to a degree. However, it would be great if it would also include:
- The timestamp of comment creation, just as it appears on Todoist
- An identifiable break between each comment (i.e., Markdown triple asterisk/dash)
Comments to flow oldest to newest as per original.
3. Add a comment to project’s comments from a selectable list of existing project names
I currently have an action that can send comments to a specified project whose ID is ‘hard-coded’ into the script. It would be great if I could instead select the project from a prompt list and then add the comment (draft content) to it.
This action by another contributor on the action directory does a similar thing, but you first select a project, then a task to add a comment to the task. Incidentally, this action works OK in that it adds the comment to a Todoist task when executed, but Drafts warns it’s failed “undefined.”