{"id":41009662,"url":"https://github.com/star7js/jira-upload-csv","last_synced_at":"2026-01-22T09:02:14.949Z","repository":{"id":209597591,"uuid":"709975008","full_name":"star7js/jira-upload-csv","owner":"star7js","description":"Easy way to create tasks and subtasks from a CSV using atlassian-python-api","archived":false,"fork":false,"pushed_at":"2025-07-05T20:39:42.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T20:43:42.957Z","etag":null,"topics":["atlassian-python-api","jira","jira-rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/star7js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-25T18:46:32.000Z","updated_at":"2025-07-05T20:39:45.000Z","dependencies_parsed_at":"2023-11-28T08:25:25.841Z","dependency_job_id":null,"html_url":"https://github.com/star7js/jira-upload-csv","commit_stats":null,"previous_names":["star7js/jira-upload-csv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/star7js/jira-upload-csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star7js%2Fjira-upload-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star7js%2Fjira-upload-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star7js%2Fjira-upload-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star7js%2Fjira-upload-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/star7js","download_url":"https://codeload.github.com/star7js/jira-upload-csv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/star7js%2Fjira-upload-csv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28659890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atlassian-python-api","jira","jira-rest-api"],"created_at":"2026-01-22T09:02:14.156Z","updated_at":"2026-01-22T09:02:14.938Z","avatar_url":"https://github.com/star7js.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jira CSV Upload Tool\n\nA Python tool for automating the creation of Jira issues and subtasks from CSV data. Features robust error handling, validation, retry logic, and a command-line interface.\n\n## Features\n\n- CSV data processing with automatic validation\n- Jira integration for creating issues and subtasks\n- Retry logic with exponential backoff for API failures\n- Input validation using Pydantic models\n- Configurable logging and error handling\n- Easy-to-use CLI with multiple commands\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/star7js/jira-upload-csv.git\n   cd jira-upload-csv\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Configuration\n\nCreate a `.env` file in the project root:\n\n```bash\ncp env.example .env\n```\n\n### Required Variables\n\n| Variable | Description | Example |\n|----------|-------------|---------|\n| `JIRA_BASE_URL` | Your Jira instance URL | `https://your-company.atlassian.net` |\n| `JIRA_USERNAME` | Your Jira email address | `user@example.com` |\n| `JIRA_API_TOKEN` | Your Jira API token | `your-api-token-here` |\n\n### Optional Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `LOG_LEVEL` | Logging level | `INFO` |\n| `DEFAULT_CSV_PATH` | Default CSV file path | `data/main_and_subtasks_multiple.csv` |\n| `BATCH_SIZE` | Issues per batch | `10` |\n| `RETRY_ATTEMPTS` | Retry attempts for failed requests | `3` |\n| `RETRY_DELAY` | Base delay between retries (seconds) | `5` |\n\n**Get your Jira API token:** Visit [Atlassian Account Settings](https://id.atlassian.com/manage-profile/security/api-tokens), create a new token, and add it to your `.env` file.\n\n## Usage\n\n### CLI Commands\n\n```bash\n# Upload issues from CSV\npython cli.py upload --csv-file path/to/file.csv\n\n# Test Jira connection\npython cli.py test\n\n# Validate CSV format\npython cli.py validate --csv-file path/to/file.csv\n\n# Generate CSV template\npython cli.py template\n\n# Show current configuration\npython cli.py config\n```\n\n### Programmatic Usage\n\n```python\nfrom src.main import main\n\nsuccess = main('path/to/file.csv')\nif success:\n    print(\"Upload completed successfully!\")\n```\n\n## CSV Format\n\nRequired columns:\n\n| Column | Required | Description |\n|--------|----------|-------------|\n| `ID` | Yes | Unique identifier for grouping rows |\n| `Project Key` | Yes | Jira project key |\n| `Summary` | Yes* | Issue summary (main issues only) |\n| `Description` | Yes* | Issue description (main issues only) |\n| `Issue Type` | Yes* | Issue type (main issues only) |\n| `Subtask Summary` | No | Subtask summary |\n| `Subtask Description` | No | Subtask description |\n\n### Example\n\n```csv\nID,Project Key,Summary,Description,Issue Type,Subtask Summary,Subtask Description\n1,PROJ1,Main Issue 1,Description,Task,Subtask 1.1,Subtask description\n1,PROJ1,,,,Subtask 1.2,Another subtask\n2,PROJ1,Main Issue 2,Description,Task,,\n```\n\n**Key points:**\n- Rows with the same `ID` are grouped together\n- Each group needs exactly one row with main issue data\n- Additional rows in a group can contain subtask data\n- Empty subtask fields are ignored\n\n## Testing\n\nRun tests:\n```bash\n# All tests\npython -m pytest tests/\n\n# With coverage\npython -m pytest tests/ --cov=src --cov-report=html\n\n# Development dependencies\npip install -r dev-requirements.txt\n```\n\n## Troubleshooting\n\n**Authentication Failed**\n- Verify credentials in `.env` file\n- Check that API token is valid and not expired\n- Confirm Jira instance URL is correct\n\n**CSV Validation Errors**\n- Run `python cli.py validate --csv-file your-file.csv`\n- Ensure all required columns are present\n- Check each issue group has exactly one main issue row\n\n**Permission Errors**\n- Verify Jira user has create permissions in the target project\n- Confirm project key exists and is accessible\n\n**Rate Limiting**\n- Tool includes automatic retry logic with exponential backoff\n- Increase `RETRY_DELAY` in `.env` if needed\n\n**Logs**: Check `jira_upload.log` for detailed error information.\n\n## Development\n\n```bash\n# Install dev dependencies\npip install -r dev-requirements.txt\n\n# Run linting\nflake8 src/ tests/\n\n# Run type checking\nmypy src/\n\n# Format code\nblack src/ tests/\n```\n\nPull requests are welcome. Please include tests for new features.\n\n## License\n\nMIT License. See [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstar7js%2Fjira-upload-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstar7js%2Fjira-upload-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstar7js%2Fjira-upload-csv/lists"}