Manage Jira Tempo time tracking and worklogs using the tempomat CLI. Use when the user wants to log hours, book time to tickets, view logged work, delete worklogs, track time with timers, or manage worklog aliases. Triggers on keywords like "tempo", "log time", "book hours", "worklog", "timesheet", "track time", or when combined with Jira ticket references for time tracking.
Time tracking and worklog management for Jira Tempo Cloud via CLI.
tempomat must be installed and configured. Check availability:
which tempo
npm install -g tempomat
tempo setup is INTERACTIVE — This cannot be run automatically. You must run it manually in your terminal:
tempo setup
This launches a 4-step interactive wizard requiring user input:
https://{yourCompany}.atlassian.net/plugins/servlet/ac/io.tempo.jira/tempo-app#!/configuration/api-integration⚠️ Note: The setup command opens browser windows for token generation and requires interactive prompts. It cannot be automated.
| Intent | Command |
|---|---|
| Log time (duration) | tempo log ISSUE-KEY 1h30m |
| Log time (interval) | tempo log ISSUE-KEY 09:00-17:00 |
| Log yesterday | tempo log ISSUE-KEY 1h y |
| Log with description | tempo log ISSUE-KEY 1h -d "meeting" |
| Log with start time | tempo log ISSUE-KEY 30m -s 14:00 |
| List today | tempo list or tempo ls |
| List yesterday | tempo list y |
| List with details | tempo list -v |
| Delete worklog | tempo delete WORKLOG_ID or tempo d ID |
| Start tracker | tempo tracker:start ISSUE-KEY or tempo start ISSUE-KEY |
| Stop & log tracker | tempo tracker:stop ISSUE-KEY or tempo stop ISSUE-KEY |
| List trackers | tempo tracker:list |
| Set alias | tempo alias:set lunch ABC-123 |
| List aliases | tempo alias:list |
| Delete alias | tempo alias:delete lunch |
Duration format: 1h, 30m, 1h30m, 90m
Interval format: 09:00-17:00, 9-17, 09:30-12:15
Basic logging:
# Log 2 hours to PROJ-123 today
tempo log PROJ-123 2h
# Shorthand
tempo l PROJ-123 2h
Log with time range:
# Log from 9 AM to 5 PM (8 hours)
tempo log PROJ-123 09:00-17:00
# Log from 1:30 PM to 3:00 PM (90 minutes)
tempo log PROJ-123 13:30-15:00
Log to a specific date:
# Yesterday
tempo log PROJ-123 1h y
tempo log PROJ-123 1h yesterday
# Specific date
tempo log PROJ-123 2h 2024-01-15
With description and custom start:
# Add a description
tempo log PROJ-123 1h -d "Reviewed PR #456"
# Specify start time when using duration
tempo log PROJ-123 2h -s 10:00
View today's logged time:
tempo list
tempo ls
View specific dates:
# Yesterday
tempo list y
# Specific date
tempo list 2024-01-15
Verbose output (with descriptions):
tempo list -v
Output includes:
Use worklog IDs from tempo list output.
Delete single worklog:
tempo delete 123456
tempo d 123456
Delete multiple:
tempo delete 123456 123457 123458
Track time in real-time and log when done.
Start tracking:
tempo tracker:start PROJ-123
tempo start PROJ-123
# With description
tempo start PROJ-123 -d "Working on feature X"
# Stop previous tracker on same issue if exists
tempo start PROJ-123 --stop-previous
Pause/Resume tracking:
tempo tracker:pause PROJ-123
tempo pause PROJ-123
tempo tracker:resume PROJ-123
tempo resume PROJ-123
Stop and log time:
tempo tracker:stop PROJ-123
tempo stop PROJ-123
# With description
tempo stop PROJ-123 -d "Completed implementation"
Manage trackers:
# List all active/paused trackers
tempo tracker:list
# Delete a tracker without logging
tempo tracker:delete PROJ-123
Aliases let you use short names instead of full issue keys.
Set an alias:
tempo alias:set lunch BREAK-001
tempo alias:set standup MEET-123
Use aliases in commands:
tempo log lunch 30m
tempo start standup
tempo stop standup -d "Daily standup"
Manage aliases:
# List all aliases
tempo alias:list
# Delete an alias
tempo alias:delete lunch
Log a full workday:
# Morning work
tempo log PROJ-123 09:00-12:00 -d "Feature development"
# Lunch
tempo log lunch 30m
# Afternoon work
tempo log PROJ-123 13:00-17:00 -d "Code review and testing"
# Verify
tempo ls
Track and log using timer:
# Start working on ticket
tempo start PROJ-456 -d "Bug investigation"
# ... work ...
# Finish and log
tempo stop PROJ-456 -d "Fixed null pointer issue"
Fix a mistaken entry:
# Find the worklog ID
tempo ls
# Delete it
tempo d 123456
# Re-log with correct details
tempo log PROJ-123 1h -d "Corrected description"
ALWAYS:
tempo ls after loggingNEVER:
"tempo: command not found"
→ tempomat not installed. Run: npm install -g tempomat, then run tempo setup manually (interactive).
"Authentication failed" or API errors
→ Tokens may be expired. User must run tempo setup manually (interactive) to reconfigure.
"Issue not found"
→ Check issue key exists and user has access. Try: jira issue view ISSUE-KEY