ticket-hero-sdk
v1.1.0
Published
A Pomodoro App for Jira Users
Downloads
7
Maintainers
Readme
Ticket Hero SDK
A command-line Pomodoro timer and task management application designed specifically for developers and Jira users. Ticket Hero helps you track time spent on tickets, earn XP for completing tasks, and manage your work with the Pomodoro technique.
Features
- Pomodoro Timer: Work in focused time intervals with automatic breaks
- Ticket Management: Add, view, and edit tickets with story points and allocated time
- Gamified Experience: Earn XP and level up as you complete tickets
- Dashboard: View statistics and recent activity
- Jira Integration: Import tickets from Jira and update their status
- User Profiles: Create and update your profile
- Progress Tracking: Visual progress bars during Pomodoro sessions
- Configurable Settings: Customize Pomodoro durations, XP rates, and UI preferences
Screenshots
Main Menu

Dashboard View

Pomodoro Timer

Ticket View

Installation
Global Installation (Recommended)
npm install -g ticket-hero-sdkAfter installation, you can start the application from anywhere using:
ticket-heroLocal Installation
npm install ticket-hero-sdk
npx ticket-heroUsage
Main Menu
Upon starting Ticket Hero, you'll be presented with the main menu:
- Add New Ticket - Create new tickets with name, story points, and allocated time
- View Tickets - See all your tickets and their status
- Start Pomodoro - Select a ticket to work on with the Pomodoro technique
- View Dashboard - See your stats and recent activity
- Edit Ticket - Modify existing tickets
- User Profile - Update your user profile
- Jira Integration - Import tickets from Jira and update ticket status
- Settings - Configure application settings
- Exit - Close the application
Pomodoro Controls
During a Pomodoro session, you can use the following keyboard commands:
- P: Pause/Resume the timer
- S: Skip the current period
- C: Complete the ticket
- Q: Quit without saving progress
Jira Integration
Ticket Hero includes integration with Jira to help you manage your work:
- Import Tickets from Jira - Pull your assigned tickets directly into Ticket Hero
- Update Jira Ticket Status - Update ticket status in Jira when completed in Ticket Hero
- Setup/Change Jira Connection - Configure your Jira connection
To set up Jira integration:
- Go to Settings and enable Jira Integration
- Go to Jira Integration menu and select "Setup/Change Jira Connection"
- Enter your Jira host (e.g.,
company.atlassian.net) - Enter your Jira email/username
- Enter your Jira API token
- For Jira Cloud, create an API token at: https://id.atlassian.com/manage-profile/security/api-tokens
- For Jira Server, use your regular password
Configuration
Ticket Hero can be configured by creating or editing the config.json file in the same directory as the application. Default settings are provided, but you can customize:
{
"pomodoro": {
"workDuration": 25,
"shortBreakDuration": 5,
"longBreakDuration": 15,
"longBreakInterval": 4,
"autoStartBreaks": true,
"autoStartPomodoros": false
},
"xp": {
"baseXpPerStoryPoint": 10,
"earlyCompletionBonusPercent": 20,
"xpLevelThresholdMultiplier": 100
},
"app": {
"dataFile": "ticket-hero-data.json",
"backupFrequencyInHours": 24,
"maxBackups": 5
},
"ui": {
"colorTheme": "default",
"useEmojis": true,
"showProgressBar": true
},
"jira": {
"enabled": false,
"updateTicketOnComplete": true,
"autoImport": false,
"autoImportFrequencyInHours": 24
}
}Data Storage
All data is stored locally:
- User profile information, tickets, and statistics are saved in
ticket-hero-data.json - Configuration is saved in
config.json - Jira credentials are securely stored in your system's keychain
Troubleshooting Jira Integration
If you encounter issues with Jira integration:
No tickets showing up:
- Make sure tickets are assigned to you in Jira
- Check that tickets are not in the "Done" or "Closed" status
- Verify your Jira credentials and connection
Can't update ticket status:
- Ensure you have permissions to transition the ticket
- Check the available transitions in your Jira workflow
Connection issues:
- For Jira Cloud, make sure you're using an API token, not your password
- Check that your Jira host URL is correct (e.g.,
company.atlassian.net)
Contributing
Contributions are welcome! This is an open-source project, and we'd love your help improving it. Here are ways you can contribute:
- Report bugs by opening issues
- Submit pull requests for new features or bug fixes
- Improve documentation
- Suggest new features or enhancements
Please read our Contributing Guide for more details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Credits
Ticket Hero uses the following npm packages:
- chalk - Terminal string styling
- cli-progress - Progress bars in the terminal
- figlet - ASCII art from text
- jira-client - Jira API client
- keytar - Secure credential storage
