Skip to content

Add et jira comment, log-time [Xh], and status commands - #4

Merged
seb4stien merged 2 commits into
mainfrom
jira-comment-log-time-status
Aug 18, 2026
Merged

Add et jira comment, log-time [Xh], and status commands#4
seb4stien merged 2 commits into
mainfrom
jira-comment-log-time-status

Conversation

@seb4stien

Copy link
Copy Markdown
Owner

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-reset is 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: new create_comment and fetch_issue_status API calls.
  • et.tracker: new parse_hours_to_seconds duration parser.
  • et.jira_time: extracted a shared resolve_active_issue helper and added log_manual_time_for_current_workspace.
  • et.task: added BLOCKED_STATUS, STATUS_WORKFLOW_ORDER, set_status_for_current_workspace, get_current_status_for_current_workspace, and add_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.
  • README/CHANGELOG updated.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

seb4stien and others added 2 commits August 18, 2026 13:05
- 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>
@seb4stien
seb4stien merged commit d821364 into main Aug 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant