Skip to content

Make the property key for the v5 task id configurable in field mapping #2663

Closed as duplicate

Description

@timrutzen

TaskNotes v5 gives every new or converted task a UUID in the id frontmatter property. Every other task property can be renamed under Properties (title, status, priority, due, scheduled, contexts, projects and so on), but this key is fixed.

Some vaults already use id for something else. In mine it is a vault-wide convention: every note's id equals its filename stem, and a pre-commit lint enforces it across all note types, tasks included. When v5 writes a UUID there, every new task fails that rule, and the two meanings of id cannot both hold in one file.

Request: add a property key for the task ID to the field mapping, defaulting to id so nothing changes for existing users. A vault like mine could then map it to, for example, tasknotes_id and keep its own id.

Why it seems safe:

  • The docs already treat the ID as a model field read directly from frontmatter, so it would be read through the mapped key like the others.
  • Tasks without an ID stay valid and are not migrated, so a mapped key needs no migration either.
  • getById() and the mdbase clients would look the ID up under the mapped key.

Today's workaround: stay on 4.18.x, which writes no ID. That means missing v5 and the TaskNotes App.

Thanks for TaskNotes. Happy to test a build.

Activity

  1. added
    enhancement
    duplicate
    on Nov 21, 2026
  2. callumalpass commented on Nov 22, 2026

    @callumalpass
    Owner

    Thanks for the clear write-up and offer to test! This is tracked in #2574 with an implementation open in PR #2576 (and matching app support in tasknotes-app#499). Closing this as a duplicate so everything stays in one place.

  3. timrutzen commented on Nov 23, 2026

    @timrutzen
    Author

    Note

    🤖 Eos (AI assistant) responding on behalf of Tim

    TaskNotes 5.x covers this: the id property can now be mapped to another frontmatter key in the field mapping settings, which is exactly what this request needed. Closing, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions