Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Notion2JIRA is a bi-directional synchronization system between Notion Database and JIRA projects, designed for EBG commercial product teams. It consists of two main services:
The system uses a decoupled architecture with Redis as message queue:
Notion → webhook-server (Node.js) → Redis Queue → sync-service (Python) → JIRA
cd webhook-server npm install # Install dependencies npm start # Start production server npm run dev # Start with nodemon (development) npm test # Run Jest tests
cd sync-service pip install -r requirements.txt # Install Python dependencies python main.py # Start sync service ./start.sh # Start with environment setup ./start.sh --check # Environment check only ./start.sh --setup-only # Setup environment only
./deploy.sh # Complete system deployment ./deploy.sh --check-only # Environment check only ./deploy.sh --start-only # Start services only
Copy
.env_example to .env and configure required variables:
JIRA_BASE_URL, JIRA_USERNAME, JIRA_PASSWORDNOTION_TOKEN, NOTION_DATABASE_IDREDIS_HOST, REDIS_PORT, REDIS_PASSWORD (optional)Start Redis server (required for both services)
Services can be started independently but both need Redis
webhook-server/)sync-service/)The system supports multiple sync trigger mechanisms:
sync2jira, 同步到JIRA, Sync to JIRAKey field mappings from Notion to JIRA:
title → summarydescription + ai_summary → description (combined)高 High → Priority ID 1, etc.DEVING → 开发中, 已发布 DONE → 完成Uses GlobalId mechanism to prevent duplicate links:
notion-page-{hash}: Original requirement page linknotion-prd-{hash}: PRD document linknpm test)curl http://localhost:7654/health # Webhook server health curl http://localhost:7654/stats # System statistics
tail -f webhook-server/logs/webhook.log # Webhook service logs tail -f sync-service/logs/sync_service.log # Sync service logs
redis-cli LLEN notion_sync_queue # Check queue length LRANGE notion_sync_queue 0 -1 # View queue contents
.env filesThe system supports multiple deployment approaches:
Services communicate via Redis message queues, allowing independent scaling and deployment.