This is a sample app demonstrating how to integrate Bytebase with Jira for automated database change management.
Corresponding tutorial 🔗
- Node.js >= 18
- A running Bytebase instance
- A Jira account with appropriate permissions
- Bytebase service account with necessary permissions
- Follow the Self-host Bytebase via docker guide to set up Bytebase.
- Create a Bytebase service account with the necessary permissions.
- Set up a Jira project for database change management.
-
Clone this repository.
-
Copy
env-template.localto.env.local.cp env-template.local .env.local
-
Update the
.env.localfile with your Bytebase and Jira details:NEXT_PUBLIC_JIRA_BASE_URL=https://xxxxxx.atlassian.net [email protected] NEXT_PUBLIC_JIRA_API_TOKEN=xxxxxxx NEXT_PUBLIC_JIRA_PROJECT_KEY=KEY NEXT_PUBLIC_BB_PROJECT_NAME=projects/jira-api NEXT_PUBLIC_BB_HOST=https://xxxxxxx [email protected] NEXT_PUBLIC_BB_SERVICE_KEY=bbs_xxxxxx -
Install dependencies and run the development server:
pnpm i && pnpm dev -
Open http://localhost:3000 with your browser to see the running app.
This app demonstrates the integration between Bytebase and Jira, including:
- Creating Jira issues for database changes
- Creating Bytebase issues based on Jira issue status
- Syncing status between Bytebase and Jira
For more details on the Bytebase API, refer to the official documentation.
For Jira API usage, consult the Jira Cloud REST API documentation.
