Add et jira comment, log-time [Xh], and status commands - #4
Merged
Conversation
- et jira comment [MESSAGE]: add a comment to the Jira issue linked to the active workspace (or a different issue via --key/-k), prompting for the message if not given. - et jira log-time [Xh]: log a manually-specified duration (e.g. 2h, 1.5h) instead of reading the Tracker timer's elapsed time; --no-reset is rejected when combined with a manual duration. - et jira status [in-progress|blocked]: transition the linked issue immediately. With no argument, show its current status and a numbered list of the team's workflow statuses to pick a new one from interactively. Adds et.jira.create_comment/fetch_issue_status, et.tracker.parse_hours_to_seconds, a shared resolve_active_issue helper in et.jira_time, and status/comment orchestration in et.task. Includes new unit and CLI tests, and updates README/CHANGELOG. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
et jira log-time, complete, comment, and status now all accept a generic -j/--jira KEY option to act on a specific Jira issue instead of the one linked to the active workspace, replacing the narrower --key/-k option that only existed on `comment`. - jira_time.resolve_issue_key: lightweight resolver used by comment/status that skips workspace/GNOME calls entirely when an override key is given. - jira_time.resolve_active_issue / log_time_for_current_workspace / log_manual_time_for_current_workspace: accept an issue_key override while still resolving the workspace index (needed for the Tracker timer and workspace deletion). - task.complete_task_for_current_workspace: threads issue_key through to the logging step. - cli.py: shared _jira_key_option() helper wires -j/--jira into log-time, complete, comment, and status. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
et jira comment [MESSAGE]— add a comment to the Jira issue linked to the active workspace (or a different issue via--key/-k), prompting for the message if not given.et jira log-time [Xh]— extended to log a manually-specified duration (e.g.2h,1.5h) instead of reading the Tracker timer's elapsed time.--no-resetis rejected when combined with a manual duration.et jira status [in-progress|blocked]— transition the linked issue immediately. With no argument, shows the ticket's current status and a numbered list of the team's workflow statuses (Untriaged,Triaged,In Progress,Blocked,In Review,To Be Deployed,Done,Rejected) to pick a new one from interactively; blank/invalid input cancels.Implementation
et.jira: newcreate_commentandfetch_issue_statusAPI calls.et.tracker: newparse_hours_to_secondsduration parser.et.jira_time: extracted a sharedresolve_active_issuehelper and addedlog_manual_time_for_current_workspace.et.task: addedBLOCKED_STATUS,STATUS_WORKFLOW_ORDER,set_status_for_current_workspace,get_current_status_for_current_workspace, andadd_comment_to_current_workspace.et.cli: wired up the new/updated commands.Testing
uv run pytest— 330 passed, 90% coverage.uv run ruff check .— clean.uv run mypy src— clean.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com