v4

latestOpenAPI 3.0.1Apache 2.02026-08-016079122.3 MB
Issue worklogs

Get worklog

Returns a worklog.

Time tracking must be enabled in Jira, otherwise this operation returns an error. For more information, see Configuring time tracking.

This operation can be accessed anonymously.

Permissions required:

  • Browse projects project permission for the project that the issue is in.
  • If issue-level security is configured, issue-level security permission to view the issue.
  • If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.
get/rest/api/2/issue/{issueIdOrKey}/worklog/{id}

Path parameters

issueIdOrKeystring required

The ID or key of the issue.

idstring required

The ID of the worklog.

Query parameters

expandstring

Use expand to include additional information about work logs in the response. This parameter accepts

properties, which returns worklog properties.

Response

Returned if the request is successful.

commentstring

A comment about the worklog. Optional when creating or updating a worklog.

createdstring date-time

The datetime on which the worklog was created.

idstring

The ID of the worklog record.

issueIdstring

The ID of the issue this worklog is for.

selfstring uri

The URL of the worklog item.

startedstring date-time

The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog.

timeSpentstring

The time spent working on the issue as days (#d), hours (#h), or minutes (#m or #). Required when creating a worklog if timeSpentSeconds isn't provided. Optional when updating a worklog. Cannot be provided if timeSpentSecond is provided.

timeSpentSecondsinteger

The time in seconds spent working on the issue. Required when creating a worklog if timeSpent isn't provided. Optional when updating a worklog. Cannot be provided if timeSpent is provided.

updatedstring date-time

The datetime on which the worklog was last updated.