Skip to content

[BUG] Notion Database Page Does Not Support End Dates #14451

@nickjanesdotcom

Description

@nickjanesdotcom

Describe the bug
When creating a database item in Notion it only allows us to select one date which is the start date and we should be able to select start date and end date.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Workflow that Creates Page from Database that has a single Date property
  2. Try to Add Start Date and End Date to the Date Property

Expected behavior
Notion Date Property

{
  "scheduled date": {
    "date": {
      "start": "2022-01-01T00:00:00Z",
      "end": "2022-01-02T00:00:00Z"
    }
  }
}

Current:

  date: {
    type: "string",
    example: "2022-05-15T18:47:00.000Z",
    options: () => undefined,
    convertToNotion: (property) => ({
      date: {
        start: property.value,
      },
    }),
  }

Future:

date: {
  type: "object",
  example: {
    start: "2022-01-01T00:00:00Z",
    end: "2022-01-02T01:00:00Z",
  },
  options: () => undefined,
  convertToNotion: (property) => ({
    date: {
      start: property.value.start,
      end: property.value.end,
    },
  }),
}

Screenshots
If applicable, add screenshots to help explain your problem. Note that the screenshots will be displayed publicly.

Desktop (please complete the following information):
N/A

Smartphone (please complete the following information):
N/A

Additional context
I am not 100% sure on dependencies and what the process is but happy to work on the update.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions