Skip to content

Expression syntax for generated fields #7

Description

@dsebastien

It would be valuable to improve generated to support temporal expressions beyond now.

Example:

fields:
  year:
    type: string
    generated: "format(now, 'YYYY')"
  quarter:
    type: string
    generated: "format(now, 'Q')"

The current now strategy only produces full datetime. Many use cases need just the year, month, quarter, or formatted date. Without this, tools resort to custom expression languages.

Spec section: Generated Field Strategies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions