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

Get worklogs for an issue

Returns all work logs for an issue. Work logs won’t be returned if the Log work field is hidden for the project.

GET/api/2/issue/{issueIdOrKey}/worklog
Authorization
AuthorizationBasic auth · headerrequired

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

or
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.

Path parameters
issueIdOrKeystringrequired

Issue id or key

Responses
200

Returns a collection of worklogs associated with the issue, with count and pagination information.

maxResultsinteger<int32>
startAtinteger<int32>
totalinteger<int32>
worklogsworklog[]
Show properties
Array of worklog
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
404

Returned if the issue with the given id/key does not exist or if the currently authenticated user does not have permission to view it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/issue/string/worklog' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "maxResults": 1,
  "startAt": 0,
  "total": 1,
  "worklogs": [
    {
      "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?