https://github.com/drew138/notion-automation
A repository to automate my notion workflows
https://github.com/drew138/notion-automation
cloudrun docker jira-rest-api notion-api notion-database terraform-modules
Last synced: 8 months ago
JSON representation
A repository to automate my notion workflows
- Host: GitHub
- URL: https://github.com/drew138/notion-automation
- Owner: drew138
- Created: 2024-07-21T17:07:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T00:59:19.000Z (10 months ago)
- Last Synced: 2025-02-27T01:50:06.774Z (10 months ago)
- Topics: cloudrun, docker, jira-rest-api, notion-api, notion-database, terraform-modules
- Language: Python
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notion Automation
This project is a simple tool that helps to manage my notion finances
and work pages by automating some tasks regarding
database entries and data visualization.
## Environment Variables
### Jira Client
Currently found in the `jira/client/client.py` file.
It requires the following environment variables:
- `JIRA_BASE_URL`: base url of the jira workspace.
- `JIRA_ACCESS_TOKEN`: jira access token used to access the jira api.
An api token can be generated in the jira settings.
Then it should be passed through the
following command to obtain this token: `echo -n : | base64`
- `JIRA_BOARD_ID`: id of the jira board. Obtainable through the
browser url of the board.
### Jira Database
Currently found in the `jira/database/database.py` file.
It requires the following environment variables:
- `JIRA_PROJECT`: Obtainable through the browser url of the project.
The url follows the following format
`/jira/software/c/projects//boards/`.
- `JIRA_STORY_POINTS_CUSTOM_FIELD`: Field containing story points.
This field can be searched using the following Jira api endpoint
`https://mercadolibre.atlassian.net/rest/api/latest/field`.
- `JIRA_REVIEWER_CUSTOM_FIELD`: Field containing issue reviewer.
This field can be searched using the following Jira api endpoint
`https://mercadolibre.atlassian.net/rest/api/latest/field`.
### Main
Currently found in the `main/server/main.py` file.
It requires the following environment variables:
- `ROUTE`: name of the task being executed.
- `PORT`: Default port is 8080.
### Notion Client
Currently found in the `notion/client/client.py` file.
It requires the following environment variables:
- `NOTION_TOKEN`
### Notion Databases
Currently found in the
`notion/database/finances/subscriptions.py`,
`notion/database/finances/transactions.py`,
`notion/database/work/assigned_issues.py`
and `notion/database/work/reviewer_issues.py` files.
They requires the following environment variables correspondingly:
- `NOTION_SUBSCRIPTIONS_DATABASE_ID`
- `NOTION_TRANSACTIONS_DATABASE_ID`
- `NOTION_ASSIGNED_ISSUES_DATABASE_ID`
- `NOTION_REVIEWER_ISSUES_DATABASE_ID`
All of the above can be accesed in the page view of the database, using its url.
the url follows the following format: `https://www.notion.so/?v=`