Jira: Worklog Edit
Write, gated. Run from this skill's directory:
python3 ../jira/scripts/jira_tool.py worklog_edit --issue_key PAY-123 --worklog_id 28459 \
[--duration 2h] [--description "..."] [--date 2026-07-20] --confirm
(First-time setup, once per environment: pip install -r ../jira/requirements.txt.)
--issue_key and --worklog_id are required; at least one of
--duration/--description/--date must also be given (omitted fields
are left unchanged). Find --worklog_id via the jira-issue-summary
skill's worklogs[].id, or from the id a prior jira-worklog call
returned.
This refuses to execute unless run with --confirm (enforced in code,
not just prompted). Unless JIRA_AUTO_CONFIRM_WRITES=true is set:
- State exactly what you're about to change (old vs. new duration/description/date) and wait for the user's explicit yes.
- Only then re-run the same command with
--confirmappended. - If the result has
"requires_confirmation": true, treat that as the tool declining to act -- relaypending_actionto the user and ask, don't retry with--confirmon your own.
--date accepts the same formats as jira-worklog's --date (relative,
ISO date, or ISO datetime) -- resolve relative day-names ("last Tuesday")
to an actual calendar date yourself first.
If the result contains "error", tell the user what went wrong in
plain language instead of retrying silently or fabricating a result.
Not sure whether the request is a new log, a fix to an existing entry,
or a deletion? Use jira-log instead -- it routes to whichever of
jira-worklog/jira-worklog-edit/jira-worklog-delete fits.
See ../jira/README.md for architecture details and the full
environment-variable table.