Provided REST API Calls

The following REST API call is provided by catworkx Tempo Utilities for Jira:


Read the Jira REST APIs documentation if you have questions about REST API calls.

Get Users' Worklogs

This requests the worklogs of users.

Prerequisites

The API request always has to be done from an admin user.

Syntax

GET .../rest/cwx-tempo-utils/1.0/tempoutils/worklogs?userName=<user>&fromDate=<from_date>&toDate=<to_date>

Where:

  • <user> User account
  • <from_date> Starting date of the requested time period
  • <to_date> End date of the requested time period

Example:

GET .../rest/cwx-tempo-utils/1.0/tempoutils/worklogs?userName=admin&fromDate=2020-01-01&toDate=2020-08-31

Output Example

[
{
    "worklogId":16701,
    "timeSpentSeconds":28800,
    "startedDate":"2020-07-20",
    "comment":"Comment",
    "issueKey":"TE-3456",
    "issueSummary":"Importand Issue",
    "customAttributes":"Traveling?=Passive Travel (plane, train)",
    "epicKey":"TE-3447",
    "epicName":"This is an epic",
    "epicCustomFields":{
        "customfield_12200":"my first value",
        "customfield_12100":"my second value"
    }
},
...
]