Skip to content

[Bug]: Duplicate Tasks Displayed in Agenda View #1028

@YIRU69

Description

@YIRU69

Bug Description

Plugin Version: TaskNotes 4.0.0-beta.0
Obsidian Version: 1.10.2
Operating System: windows

Description

Tasks are appearing twice in the Agenda View when both date and due properties are set to the same date. This occurs when using a custom field mapping where date represents the scheduled date.

Steps to Reproduce

  1. Create a task with the following frontmatter:
---
UID: "20251030134127435"
title: ✅Example task
fileClass: fc-task
tags:
  - YT2025
  - task
aliases:
parent:
  - "[[🎯xx]"
status: Doing
completed: false
priority: Medium
date: 2025-10-30
completedDate:
due: 2025-10-30
date modified: 2025-10-30T13:41:40.274+08:00
---
  1. Open the Agenda View
  2. Observe that the same task appears twice under the same date group

Expected Behavior

Tasks should be deduplicated when date (scheduled) and due are set to the same date. The task should only appear once in the Agenda View.

Actual Behavior

The task appears twice in the Agenda View, likely because both the date field and due field are being processed independently, causing the same task to be displayed for each date property.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions