Skip to content

[Bug]: Inline/bulk task conversion doesn't parse both scheduled and due dates (only creation modal was fixed in #1042) #1698

@serendipity-sws

Description

@serendipity-sws

Bug Description

Plugin Version: TaskNotes 4.4.0
Obsidian Version: 1.10.x
Operating System: Windows 11

Bug Description

Inline task conversion (both instant convert button and bulk "Convert all tasks in note to TaskNotes") does not parse the scheduled keyword at all. Only due dates are extracted. This applies whether scheduled is used alone or alongside due.
The fix in v4.2.1 for #1042 / #1421 only applied to the creation modal NLP parser, not the inline conversion code path.
Tested combinations (all fail for scheduled):

scheduled March 16 alone → stays in title, default "today" applied
due March 20 scheduled March 16 → due parsed, scheduled stays in title
scheduled March 16 due March 20 → due parsed, scheduled stays in title
due 2026-03-20 scheduled 2026-03-16 → due parsed, ISO format doesn't help scheduled

Steps to Reproduce

  1. In any note, write:
- [ ] Test task due March 20 scheduled March 16 !high +[[Project/_Master]] #deliverable
  1. Click the instant convert button next to the checkbox (or run "Convert all tasks in note to TaskNotes" from command palette)
  2. Open the resulting task file

Expected Behavior

Frontmatter should contain both:

  • due: 2026-03-20
  • scheduled: 2026-03-16
  • Title: "Test task"

Actual Behavior

  • due: 2026-03-20 ✅ parsed correctly
  • scheduled: 2026-03-14 (today's date — default applied, not parsed)
  • Title: "Test task scheduled March 16" — scheduled date left as literal text in title

Additional Context

Tested both orderings (due first and scheduled first) — same result. The v4.1.0 changelog mentions "Improved inline task conversion to merge TasksPlugin and NLP parsing results" which successfully parses single dates, priority, tags, projects, and time estimates. Only the dual-date case is affected.

The creation modal correctly handles both dates since v4.2.1. This appears to be a different code path for inline conversion that wasn't included in the #1042 fix.

Great plugin — this is a minor gap in an otherwise excellent inline conversion feature. Thanks!

Individual conversion: Image
bulk conversion: Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions