---
ai:
  exclude: true
search:
  tags:
    - worklog
    - POST
seo:
  description: >-
    Returns worklogs for given worklog ids. Only… Reference for the POST
    /api/2/worklog/list endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Returns worklogs for given ids.
  badge: POST
title: Returns worklogs for given ids.
type: openapi-operation
---
Returns worklogs for given worklog ids. Only worklogs to which the calling user has permissions, will be included in the result. The returns set of worklogs is limited to 1000 elements.

`POST /api/2/worklog/list`

**Request body** (`application/json`, required)

a JSON object containing ids of worklogs to return

- `ids` (integer<int64>[]) — List of worklog ids

Request body example:

```json
{
  "ids": [
    1,
    2,
    5,
    10
  ]
}
```

**Responses**

- `200` — Returns a JSON representation of the worklogs.
- `400` — Returned if the request contains more than 1000 ids or is null

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"
  }
}
```
