Overview
With the REST API you can get the data outside of Jira. It can be usefull, if you want to aggregate your data in a 3rd party tool, for example, in the Power BI.
Our REST API for Data Center provides possibility to get data according to users permissions. As we have secured worklogs option, and strong permission model does not allow users without required permissions to get any worklogs related data, we keep this principle here also. Users who are not permitted to see worklogs of a team, will not get any data using the APIs.
How to get all worklogs by issue key?
You can use following API:
{ // required parameter "issueKey": "", // optional parameter, only worklog author or team "worklogAuthorId": 1, "teamId": 1, // optional parameter "startAt": 0, //default value 0 "maxResults": 1, //default value 2147483647 // optional parameter "startDate": "", "endDate": "" }