Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Returns worklogs for given ids.

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
Authorization
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Request body
requiredapplication/json

a JSON object containing ids of worklogs to return

idsinteger<int64>[]

List of worklog ids

Responses
200

Returns a JSON representation of the worklogs.

authorUserJsonBean
Show properties
activeboolean
avatarUrlsobject
displayNamestring
emailAddressstring
keystring
namestring
selfstring
timeZonestring
commentstring
createdstring
idstring
issueIdstring
selfstring<uri>
startedstring
timeSpentstring
timeSpentSecondsinteger<int64>
updateAuthorUserJsonBean
Show properties
activeboolean
avatarUrlsobject
displayNamestring
emailAddressstring
keystring
namestring
selfstring
timeZonestring
updatedstring
visibilityVisibilityJsonBean
Show properties
typestring
Allowed:grouprole
valuestring
400

Returned if the request contains more than 1000 ids or is null

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/worklog/list' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "ids": [
    1,
    2,
    5,
    10
  ]
}'
Response
{
  "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"
  }
}

Was this page helpful?