I have identified a bug in the task archiving feature where unchecked tasks are being incorrectly archived even if they do not match the specified file path or task text patterns.
This issue seems to stem from a discrepancy between
the logic used to extract target tasks(TaskTestingService.isTaskHandledByRule)
the logic used for actually moving (or deleting) these tasks(ArchiveFeature.findRuleForTask).
Example
Rule
I want to archive tasks that has an unchecked status and whose text contains the strings #project like this.
Description
I have identified a bug in the task archiving feature where unchecked tasks are being incorrectly archived even if they do not match the specified file path or task text patterns.
This issue seems to stem from a discrepancy between
TaskTestingService.isTaskHandledByRule
)ArchiveFeature.findRuleForTask
).Example
Rule
I want to archive tasks that has an unchecked status and whose text contains the strings
#project
like this.Tasks before archive
Expectation
Actual Behavior