# Todoist Do Less goal for overdue tasks?

**URL:** <https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178>\
**Category:** Akrasia\
**Created:** [October 3, 2023, 1:27am UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178 "2023-10-03T01:27:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![spencerrose](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/spencerrose/32/5125_2.png) [@spencerrose](https://forum.beeminder.com/u/spencerrose)\
**Post date:** [October 3, 2023, 1:27am UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/1 "2023-10-03T01:27:24Z")

</div>

Is there a way to connect to Todoist and make a goal to have 0 overdue tasks each day?

---

<div class="post-metadata">

**Author:** ![clivemeister](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/clivemeister/32/2034_2.png) [@clivemeister](https://forum.beeminder.com/u/clivemeister)\
**Post date:** [October 3, 2023, 5:21pm UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/2 "2023-10-03T17:21:33Z")

</div>

Great idea! Sadly, at the moment, you can only count “completed tasks” from a Todoist category (label, project, etc). Still, it’s a good suggestion - you might add it to the [http://beeminder.consider.it/](http://beeminder.consider.it/) list!

It wouldn’t be at all hard to code it up yourself, if you’re into that sort of thing. The Todoist API will give you a list of your active tasks, complete with due date (or you could I think filter by due date earlier than today). So then you’d just count them and post the result to your do-less goal.

---

<div class="post-metadata">

**Author:** ![spencerrose](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/spencerrose/32/5125_2.png) [@spencerrose](https://forum.beeminder.com/u/spencerrose)\
**Post date:** [October 3, 2023, 5:36pm UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/3 "2023-10-03T17:36:09Z")

</div>

Thanks, I didn’t know we had a feature request leaderboard!

I’m a bit scared of coding tbh. But I’d commission someone to do it for me. If it would only take an hour, I could pay someone $20.

---

<div class="post-metadata">

**Author:** ![clivemeister](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/clivemeister/32/2034_2.png) [@clivemeister](https://forum.beeminder.com/u/clivemeister)\
**Post date:** [October 7, 2023, 11:12am UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/4 "2023-10-07T11:12:23Z")

</div>

Well if it’s any use, I did add it to my collection of Python beeminder tools (no payment necessary, I was curious as to how easy it was!). They’re up on github at [clivemeister/beeminder](https://github.com/clivemeister/beeminder) and you’d want the “getTodoistOverdue.py” function.

You’ll need python installed, and the Todoist python libraries (with `pip install todoist_api_python` or your equivalent). Then make sure your beeminder and Todoist authorisation tokens are added to the `beeminder.ini` file, and you can do something like

```auto
py getTodoistOverdue.py --goal myOverdueGoal

```

It’ll then add a datapoint to your beeminder ‘myOverdueGoal’ goal, with the count of your overdue goals on Todoist. You can see the goals themselves with the `-v` flag, or just test it out without updating the goal with the `-t` flag.

---

<div class="post-metadata">

**Author:** ![spencerrose](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/spencerrose/32/5125_2.png) [@spencerrose](https://forum.beeminder.com/u/spencerrose)\
**Post date:** [October 9, 2023, 3:50pm UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/5 "2023-10-09T15:50:56Z")

</div>

Okay thanks!! I will try to figure this out.

---

<div class="post-metadata">

**Author:** ![ieahleen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/ieahleen/32/5096_2.png) [@ieahleen](https://forum.beeminder.com/u/ieahleen)\
**Post date:** [October 12, 2023, 11:31am UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/6 "2023-10-12T11:31:12Z")

</div>

is there a way to automatize the data point? maybe using some tool online to run the script on a cron?

---

<div class="post-metadata">

**Author:** ![ieahleen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/ieahleen/32/5096_2.png) [@ieahleen](https://forum.beeminder.com/u/ieahleen)\
**Post date:** [October 19, 2023, 3:31pm UTC](https://forum.beeminder.com/t/todoist-do-less-goal-for-overdue-tasks/11178/7 "2023-10-19T15:31:11Z")

</div>

now that I think about it, I would like something that count both due and overdue goals. Sort of behaving like the inbox-zero goal, where you get the number of total mails/goals that you have that day, and then work at bringing that to 0. A Whittle Down type goal
