Add an auto-incrementing ticket id to your Notion tickets, JIRA-style.
The workaround / hack is to dedicate a separate property to record the ticket number.
Before | After |
---|---|
-
Have the following ready (simply follow Steps 1 & 2 of Notion's Getting started guide):
- your Notion integration token
- the ID of your Notion database
-
Inside your Notion database, add a ticket ID property whose type is Number, and make sure it's visible on your Kanban board view. You can use whatever name you prefer. The example here uses "Ticket ID."
-
Python 3.7+ required. Install required packages:
pip install -r requirements.txt
Simply copy the env example to a new .env
file.
cp example.env .env
Replace its content with your own. Note that NOTION_ID_PROP
's value should be the name of the property you just created.
Run it with your favorite script scheduler (the current code is intended for AWS Lambda). You can choose your own frequency. Just note that ticket IDs are only updated every time the script is run.