Jira: Worklog
Write, gated. Run from this skill's directory:
python3 ../jira/scripts/jira_tool.py worklog --issue_key PAY-123 --duration 2h --description "implementing validation" [--date 2026-07-20] --confirm
(First-time setup, once per environment: pip install -r ../jira/requirements.txt.)
--issue_key, --duration (Jira-style, e.g. 2h, 1d 30m), and
--description are required. 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 log -- including the date, if not today -- 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_action(which echoes backdateand the resolvedstartedtimestamp) to the user and ask, don't retry with--confirmon your own.
--date is optional and defaults to now. It accepts a relative offset
(-1d), an ISO date (2026-07-20), or a full ISO datetime -- you must
resolve relative day-names ("last Tuesday", "yesterday") to an actual
calendar date yourself first (you know today's date); this tool does
not parse natural-language dates, and never silently logs against
"today" when the user asked for a different day -- if you're not sure
which date they mean, ask before running the command.
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.