Skip to content

Add an auto-incrementing ticket id to your Notion tickets, JIRA-style.

Notifications You must be signed in to change notification settings

ShangyanLi/NotionJIRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotionJIRA

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

Prereqs

  1. Have the following ready (simply follow Steps 1 & 2 of Notion's Getting started guide):

    1. your Notion integration token
    2. the ID of your Notion database
  2. 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."

  3. Python 3.7+ required. Install required packages: pip install -r requirements.txt

Setup

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

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.

About

Add an auto-incrementing ticket id to your Notion tickets, JIRA-style.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published