This Python script allows you to sync Jira issues with a Notion database.
The Jira to Notion Sync script is designed to connect to your Jira instance, retrieve a list of issues based on a specified Jira filter, and then create corresponding entries in a Notion database. This can be useful for keeping track of Jira issues in a Notion workspace for better project management and collaboration.
-
Clone the repository to your local machine:
git clone https://github.com/danilbogdan/jira_to_notion.git
-
Install the required Python packages using
pip:pip install -r requirements.txt
-
Set the
.envfile with your Jira and Notion credentials and configurations. -
Run the script:
python3 main.py
The script will connect to your Jira instance, fetch issues from the specified filter, and create corresponding entries in your Notion database.
- Python 3.x
- Jira account with API access
- Notion account with API access
Before running the script, you need to configure it by updating the settings.py file. Here's what you need to configure:
-
Jira Configuration:
JIRA_BASE_URL: The base URL of your Jira instance.JIRA_USERNAME: Your Jira username.JIRA_PASSWORD: Your Jira password or API token.
-
Notion Configuration:
NOTION_TOKEN: Your Notion API token.NOTION_DATABASE: The ID of your Notion database where you want to create entries.
-
Jira Filter:
JIRA_FILTER: The Jira filter ID or query to specify which issues to sync.
This project is licensed under the MIT License - see the LICENSE file for details.
You should place this README in the root of your project directory and make sure to update any placeholders with actual values and descriptions. Additionally, ensure that you have the required dependencies installed and properly configured before running the script.