add_worklog
Record worklog entries on Jira issues. Provide issue key and time spent; optionally set start date and comment.
Instructions
Log time on a Jira issue, as the user who owns the API token.
CALL THIS TOOL STRICTLY ON THE USER'S EXPLICIT REQUEST. It is the only tool here that writes: it creates a real worklog under the user's name and cannot be undone from this server. Never call it on your own initiative — not after finishing a task, not to "correct" hours seen in a report, not as a step inferred from some other request. If the user has not asked to log time, ask them first.
Args:
issue_key: The issue to log against, e.g. PROJ-123.
time_spent: Duration in Jira syntax — 2h, 90m, 2h 30m,
1d 4h (w/d/h/m). Jira converts it using the instance's
working day/week, so 1d is usually 8h, not 24h.
started: When the work happened. YYYY-MM-DD (anchored at 09:00
local time), YYYY-MM-DDTHH:MM, or a timestamp with an
offset. Defaults to now — pass the date explicitly when logging
for a past day.
comment: Optional worklog comment (plain text / Jira wiki markup).
Returns the created worklog: id, time_spent, started,
author and a browse link to the issue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | ||
| started | No | ||
| issue_key | Yes | ||
| time_spent | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||