obsidian-tasks: Make (due|scheduled|start) date of blocked task relative to blocking task completion
⚠️ Check request is valid.
- My request is about the Tasks plugin for Obsidian.
- I am only requesting a single feature in the Tasks plugin. Multiple changes should be split into individual requests, with links between them.
- I believe my requested feature will be generally applicable to other Tasks plugin users, not just me: it is not uniquely tied to my personal workflow.
⚠️ Please check that this feature request hasn’t been suggested before.
- I searched previous Tasks plugin Ideas in Discussions didn’t find any similar feature requests.
- I searched previous Tasks plugin Issues didn’t find any similar feature requests.
🔖 Feature description
Make the (due|scheduled|start) date fields accept relative dates language similar to the recurring date field.
This is particularly useful for dependent tasks, though theoretically it would work for any task.
✔️ Solution
Example 1 (law):
When a new civil suit is filed, the court issues a Summons for the defendant to appear. That summons, along with the Petition and initial discovery must be served on the defendant before the summons expires and needs to be reissued (30 days in this example). That paperwork may be served at any time within that 30 day period. The day that the paperwork is actually served sets other deadlines: the completed original return of service must be filed with the court within 3 weekdays after service is complete. If a motion to compel discovery is to be filed, it can not be filed less than 45 days after service is complete, but it is desirable to file it quickly to move the case along.
- Task 1: service of defendant within the summons expiration deadline
- Task 2: filing of return of service within 3 weekdays after service done (the court does not count weekends or holidays in its date calculation when the statutory period is less than 7 days). When Task 1 is done Task 2’s due date is set to 3 weekdays after Task 1 is done.
- Task 3: when Task 1 is done, Task 3’s start date is set to 45 days after Task 1 is done, and Task 3’s due date is set to 60 days after Task 1 is done.
- [ ] #task serve defendant with petition and initial discovery 🆔 sr9sxh ➕ 2024-12-16 🛫 2024-12-16 📅 2025-01-15
- [ ] #task file original return of service with court ⛔ sr9sxh ➕ 2024-12-16 📅 3 weekdays after sr9sxh done
- [ ] #task file motion to compel discovery if discovery not answered ⛔ sr9sxh ➕ 2024-12-16 🛫 45 days after sr9sxh completed 📅 60 days after sr9sxh done
Example 2 (education):
I am involved in an online doctoral program. The nature of the coursework is self-paced, but all work for each class must be completed within 16 weeks of commencement of the course. Thus, the actual final due date for all work is fixed at 16 weeks after commencement of the course, but obviously, all work for a 16 week course cannot be done the day it is due. Moving faster than that through the coursework would be preferable, so rather than schedule out the assignments over the course of 16 weeks, or some other arbitrary shorter time, it would be beneficial to have the following module’s work given a scheduled|start date relative to the completion of the previous module. At the end of each module several assignments must be completed (I’ve only included one in the example). There are 10 modules in each course.
- Task 4: first module’s reading assignment. Other Module 1 assignments are dependent upon having completed the reading.
- Task 5: reaction paper to Module 1 reading (one of 4 post-module assignments). My goal is to complete the reaction paper within 1 day of completing the related reading. Therefore, when Task 4 is done (whether that’s one week from it’s scheduled date, or the same day that it is scheduled), Task 5 has it’s due date set to one day after Task 4 done.
- Task 6: Module 2 begins with its reading assignment. Each module must be done in order, and is thus dependent upon completion of the previous module. I would prefer not to start a new module on weekends. Thus, when Task 4 is done, Task 6 has it’s start date and scheduled date set to 1 weekday after Task 4 is done.
- [ ] #task Module 1 reading 🆔 qc82jg ➕ 2024-12-16 ⏳ 2024-12-16 📅 2025-04-07
- [ ] #task submit written reaction paper to module 1 reading ⛔ qc82jg ➕ 2024-12-16 📅 1 day after qc82jg done
- [ ] #task Module 2 reading ⛔ qc82jg ➕ 2024-12-16 🛫 1 weekday after qc82jg completed ⏳ 1 weekday after qc82jg done📅 2025-04-07
I suppose, in theory, this is an extension of dependency, since the relative due|scheduled|start date is dependent upon the completion of another task. It may be useful to automatically set a dependency for the relative task so that the user is not required to set both an explicit dependency and the relative date setting.
❓ Alternatives
When a dependent task becomes unblocked, it’s due|start|scheduled date could be manually adjusted. However.
- this is tedious, especially if this pattern is common or multiple dependent tasks are involved
- if dependent tasks have different date setting requirements, this can be prone to error
- manual adjustment is subject to user error or forgetfulness
📝 Additional Context
This type of pattern occurs frequently in publishing, law, and education. A programmatic solution to this issue is exactly what makes digital task management solutions superior to paper.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28
Yep. My bad. I misunderstood you.
I was trying to think of ways to limit processing overhead by narrowing the scope of needed changes on a DONE event. But if it’s easier to implement this way, that would work. It would probably reduce user error also since the relative date would not require the related task as a dependency (The id in ⛔).
Ah - I think the confusion may be due to us having differing interpretations of
idhere???Please read:
So in the above line, there are three
idvalues:idin ⛔idin 🛫idin ⏳Perhaps that clarifies that when I say …
… all I mean is for simplicity of implementation, when a task with a given
idis changed to aDONEstatus, I would use theidvalues that this Features Request proposes including indue,scheduledandstartto work out which date fields need to be updated…It is just an implementation simplification…
It means the the task-editing code does not have to care about any inconsistencies between the
dependsOnfield and the date fields - it just respects what the user has put in their shiny new date fields…Yeah, I can’t do this. But
every weekdayandevery 3 weeks on weekdaysdoes work. So the weekday logic is there, but it is not being applied to a “days” scope for some reason.Maybe a separate field (with additional emoji), then, that would hold the logic for defining relative dates? That way it would not interfere with existing dependencies of other plugins on the current Tasks format. Additional/unrecognized emoji fields should be ignored, right?
Maybe the same could be done for this feature - to say that it is up to the user to make sure their IDs are valid… which would slightly reduce the amount of time required to implement this.
Sorry, but no, it’s just not that simple.
The unknown pattern could make the other plugin crash, or a user could unwittingly edit the task in another plugin and lose the custom rule…
As the maintainer of a widely used plugin, I feel I have the responsibility to be more careful than that.
None. Just inconsistency on my part.
I’ve updated the description. I hope that helps.
To directly answer your question, the “what” being done is the setting of a date in the dependent task. Similar to the recurring date field. When a recurring task is marked done, a new task is created with a due|scheduled|start date relative to the completion date of the previous recurring task.
Here, I’m suggesting that this same logic be applied to setting due|scheduled|start dates on dependent tasks. Thus, when a blocking task is marked done, its blocked tasks may include relative date setting language that would set the blocked task’s due|scheduled|start date relative to the done date of the formerly blocking task.