---
ai:
  exclude: true
search:
  tags:
    - issue
    - GET
seo:
  description: >-
    Returns a specific worklog. The… Reference for the GET
    /api/2/issue/{issueIdOrKey}/worklog/{id} endpoint in the Jira Software Data
    Center REST API Reference.
sidebar:
  label: Get a worklog by id
  badge: GET
title: Get a worklog by id
type: openapi-operation
---
Returns a specific worklog. The work log won't be returned if the Log work field is hidden for the project.

`GET /api/2/issue/{issueIdOrKey}/worklog/{id}`

**Responses**

- `200` — Returns a response containing a worklog.
- `404` — Returned if the work log with the given id does not exist or if the currently authenticated user does not have permission to view it.

Response example, 200:

```json
{
  "author": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "comment": "I did some work here.",
  "created": "2010-07-14T18:23:23.733+0000",
  "id": "100028",
  "issueId": "10002",
  "self": "http://www.example.com/jira/rest/api/2/issue/10010/worklog/10000",
  "started": "2010-07-14T18:23:23.733+0000",
  "timeSpent": "3h 20m",
  "timeSpentSeconds": 12000,
  "updateAuthor": {
    "active": true,
    "avatarUrls": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "key": "fred",
    "name": "Fred",
    "self": "http://www.example.com/jira/rest/api/2/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "updated": "2010-07-14T18:23:23.733+0000",
  "visibility": {
    "type": "group",
    "value": "jira-software-users"
  }
}
```
