Jira: Worklog Delete
Write, gated, destructive. Run from this skill's directory:
python3 ../jira/scripts/jira_tool.py worklog_delete --issue_key PAY-123 --worklog_id 28459 --confirm
(First-time setup, once per environment: pip install -r ../jira/requirements.txt.)
--issue_key and --worklog_id are required. Find --worklog_id via
the jira-issue-summary skill's worklogs[].id, or the id a prior
jira-worklog call returned. This cannot be undone -- there is no
restore.
This refuses to execute unless run with --confirm (enforced in code,
not just prompted). Unless JIRA_AUTO_CONFIRM_WRITES=true is set:
- State exactly which worklog you're about to permanently delete (issue, duration, description, date if known) 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.
If you only need to fix a wrong duration/description/date rather than
remove the entry entirely, use jira-worklog-edit instead.
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.