How do I get a due date value to auto-update?

Is there a script (or is it possible for me to attempt one) that automatically updates the @due value on a task, inheriting the due date on the heading when I move said task to another day?

Say i have a task like this:

2026-08-25 Tue
Take out garbage [today]

2026-08-26 Wed
Finish document review [tomorrow]

I would like to have the “take out garbage” task’s due date update when I drag the task to tomorrow, rather than my current practice of moving both the task and updating the due date.

1 Like